{"hash":"0xDC416CA762BC4F43","ns":"MISC","name":"_GET_NUMBER_OF_BULLETS_IN_AREA","slug":"_GET_NUMBER_OF_BULLETS_IN_AREA","official":false,"named":true,"luaName":"GetNumberOfBulletsInArea","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"radius","type":"float"},{"name":"p4","type":"BOOL"},{"name":"p5","type":"BOOL"}],"summary":"Returns the number of bullets in an area.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns the number of bullets in an area.\nResearch notes this does not appear to work for arrows or throwable projectiles."},{"source":"vorp","format":"text","body":"returns the number of bullets that were shot in the area"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/MISC/_GET_NUMBER_OF_BULLETS_IN_AREA","markdownUrl":"https://natives.borderlinerp.com/natives/MISC/_GET_NUMBER_OF_BULLETS_IN_AREA.md","snippets":{"lua":"local retval = GetNumberOfBulletsInArea(x, y, z, radius, p4, p5)","luaInvoke":"local retval = Citizen.InvokeNative(0xDC416CA762BC4F43, x, y, z, radius, p4, p5, Citizen.ResultAsInteger())","js":"const retval = GetNumberOfBulletsInArea(x, y, z, radius, p4, p5);","jsInvoke":"const retval = Citizen.invokeNative('0xDC416CA762BC4F43', x + 0.0000001, y + 0.0000001, z + 0.0000001, radius + 0.0000001, p4, p5, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xDC416CA762BC4F43, x, y, z, radius, p4, p5);","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.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}