{"hash":"0x2B32B11520626229","ns":"VOLUME","name":"_GET_VOLUME_AMOUNT_OF_INDEXED_ITEMS","slug":"_GET_VOLUME_AMOUNT_OF_INDEXED_ITEMS","official":false,"named":true,"luaName":"GetVolumeAmountOfIndexedItems","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"radius","type":"float"},{"name":"itemSet","type":"ItemSet"}],"summary":"Indexes items (including entyties and peds) in a set volume Counts up as its the return value of how many items it writes to given itemSet","descriptions":[{"source":"alloc8or","format":"text","body":"Indexes items (including entyties and peds) in a set volume\nCounts up as its the return value of how many items it writes to given itemSet"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/VOLUME/_GET_VOLUME_AMOUNT_OF_INDEXED_ITEMS","markdownUrl":"https://natives.borderlinerp.com/natives/VOLUME/_GET_VOLUME_AMOUNT_OF_INDEXED_ITEMS.md","snippets":{"lua":"local retval = GetVolumeAmountOfIndexedItems(x, y, z, radius, itemSet)","luaInvoke":"local retval = Citizen.InvokeNative(0x2B32B11520626229, x, y, z, radius, itemSet, Citizen.ResultAsInteger())","js":"const retval = GetVolumeAmountOfIndexedItems(x, y, z, radius, itemSet);","jsInvoke":"const retval = Citizen.invokeNative('0x2B32B11520626229', x + 0.0000001, y + 0.0000001, z + 0.0000001, radius + 0.0000001, itemSet, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x2B32B11520626229, x, y, z, radius, itemSet);","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."]}}