{"hash":"0xCFF869CBFA210D82","ns":"PED","name":"GET_PED_NEARBY_VEHICLES","slug":"GET_PED_NEARBY_VEHICLES","official":true,"named":true,"luaName":"GetPedNearbyVehicles","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"ped","type":"Ped"},{"name":"sizeAndVehs","type":"Any*"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0xCFF869CBFA210D82","gtaJhash":"0xCB716F68","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/PED/GET_PED_NEARBY_VEHICLES","markdownUrl":"https://natives.borderlinerp.com/natives/PED/GET_PED_NEARBY_VEHICLES.md","snippets":{"lua":"local retval, sizeAndVehs = GetPedNearbyVehicles(ped, sizeAndVehs)","luaInvoke":"local retval, sizeAndVehs = Citizen.InvokeNative(0xCFF869CBFA210D82, ped, Citizen.PointerValueIntInitialized(sizeAndVehs), Citizen.ResultAsInteger())","js":"const [retval, sizeAndVehs] = GetPedNearbyVehicles(ped, sizeAndVehs);","jsInvoke":"const [retval, sizeAndVehs] = Citizen.invokeNative('0xCFF869CBFA210D82', ped, Citizen.pointerValueIntInitialized(sizeAndVehs), Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var sizeAndVehs = new OutputArgument();\nint retval = Function.Call<int>((Hash)0xCFF869CBFA210D82, ped, sizeAndVehs);\n// sizeAndVehs.GetResult<int>()","notes":["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."]}}