| Property | Value |
|---|---|
| Native Name | _GET_NEAR_HORSE |
| Hash | 0x0501D52D24EA8934 |
| Return Type | int |
| Build | 1207 |
| API Set | client |
| Parameters | p0 (int) |
Description: This native accepts 1 as parameter in the decompiles returns the nearest horse handle if within 2 3 meters of the player, if not close enough returns false
NOTE: if type is 0 returns PlayerPedId always?
Usage
Lua (Direct):
local result = GetNearHorse(p0)
Lua (Hash):
local result = Citizen.InvokeNative(0x0501D52D24EA8934, p0)