GET_PED_NEARBY_VEHICLES
Hash
0xCFF869CBFA210D82Runtime name
GetPedNearbyVehiclesNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xCFF869CBFA210D82Signature
int GET_PED_NEARBY_VEHICLES(Ped ped, Any* sizeAndVehs);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
sizeAndVehs | Any* | — |
Returns int
Usage
local retval, sizeAndVehs = GetPedNearbyVehicles(ped, sizeAndVehs)
-- always works, by hash
local retval, sizeAndVehs = Citizen.InvokeNative(0xCFF869CBFA210D82, ped, Citizen.PointerValueIntInitialized(sizeAndVehs), Citizen.ResultAsInteger())JavaScript and C#
const [retval, sizeAndVehs] = GetPedNearbyVehicles(ped, sizeAndVehs);
// by hash
const [retval, sizeAndVehs] = Citizen.invokeNative('0xCFF869CBFA210D82', ped, Citizen.pointerValueIntInitialized(sizeAndVehs), Citizen.returnResultAnyway(), Citizen.resultAsInteger());var sizeAndVehs = new OutputArgument();
int retval = Function.Call<int>((Hash)0xCFF869CBFA210D82, ped, sizeAndVehs);
// sizeAndVehs.GetResult<int>()- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
Any*arguments are often structs. Build them with a DataView buffer and pass it with:Buffer()— see the examples and notes below.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.