{"hash":"0x23F8F5FC7E8C4A6B","ns":"PED","name":"GET_PED_NEARBY_PEDS","slug":"GET_PED_NEARBY_PEDS","official":true,"named":true,"luaName":"GetPedNearbyPeds","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"ped","type":"Ped"},{"name":"sizeAndPeds","type":"Any*"},{"name":"ignoredPedType","type":"int"},{"name":"p3","type":"int"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x23F8F5FC7E8C4A6B","gtaJhash":"0x4D3325F4","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/PED/GET_PED_NEARBY_PEDS","markdownUrl":"https://natives.borderlinerp.com/natives/PED/GET_PED_NEARBY_PEDS.md","snippets":{"lua":"local retval, sizeAndPeds = GetPedNearbyPeds(ped, ignoredPedType, p3)","luaInvoke":"local retval, sizeAndPeds = Citizen.InvokeNative(0x23F8F5FC7E8C4A6B, ped, Citizen.PointerValueInt(), ignoredPedType, p3, Citizen.ResultAsInteger())","js":"const [retval, sizeAndPeds] = GetPedNearbyPeds(ped, ignoredPedType, p3);","jsInvoke":"const [retval, sizeAndPeds] = Citizen.invokeNative('0x23F8F5FC7E8C4A6B', ped, Citizen.pointerValueInt(), ignoredPedType, p3, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var sizeAndPeds = new OutputArgument();\nint retval = Function.Call<int>((Hash)0x23F8F5FC7E8C4A6B, ped, sizeAndPeds, ignoredPedType, p3);\n// sizeAndPeds.GetResult<int>()","notes":["Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.","`Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below."]}}