{"hash":"0x336B3D200AB007CB","ns":"PED","name":"COUNT_PEDS_IN_COMBAT_WITH_TARGET_WITHIN_RADIUS","slug":"COUNT_PEDS_IN_COMBAT_WITH_TARGET_WITHIN_RADIUS","official":true,"named":true,"luaName":"CountPedsInCombatWithTargetWithinRadius","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"ped","type":"Ped"},{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"radius","type":"float"},{"name":"flag","type":"int"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x336B3D200AB007CB","gtaJhash":"0xFB18CB19","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/PED/COUNT_PEDS_IN_COMBAT_WITH_TARGET_WITHIN_RADIUS","markdownUrl":"https://natives.borderlinerp.com/natives/PED/COUNT_PEDS_IN_COMBAT_WITH_TARGET_WITHIN_RADIUS.md","snippets":{"lua":"local retval = CountPedsInCombatWithTargetWithinRadius(ped, x, y, z, radius, flag)","luaInvoke":"local retval = Citizen.InvokeNative(0x336B3D200AB007CB, ped, x, y, z, radius, flag, Citizen.ResultAsInteger())","js":"const retval = CountPedsInCombatWithTargetWithinRadius(ped, x, y, z, radius, flag);","jsInvoke":"const retval = Citizen.invokeNative('0x336B3D200AB007CB', ped, x + 0.0000001, y + 0.0000001, z + 0.0000001, radius + 0.0000001, flag, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x336B3D200AB007CB, ped, x, y, z, radius, flag);","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason."]}}