_GET_VOLUME_AMOUNT_OF_INDEXED_ITEMS
Based on its name and signature, here is our best reading:
Returns a count of items in itemSet found within radius of the given coordinates.
Signature
int _GET_VOLUME_AMOUNT_OF_INDEXED_ITEMS(float x, float y, float z, float radius, ItemSet itemSet); // 0x2B32B11520626229 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x | float |
| 2 | y | float |
| 3 | z | float |
| 4 | radius | float |
| 5 | itemSet | ItemSet |
Facts
| Name | _GET_VOLUME_AMOUNT_OF_INDEXED_ITEMS |
|---|---|
| Hash | 0x2B32B11520626229 |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x2B32B11520626229, -- _GET_VOLUME_AMOUNT_OF_INDEXED_ITEMS
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0, -- float radius
0, -- ItemSet itemSet
Citizen.ResultAsInteger()
)
print(result)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x2B32B11520626229", // _GET_VOLUME_AMOUNT_OF_INDEXED_ITEMS
0.0, // float x
0.0, // float y
0.0, // float z
0.0, // float radius
0, // ItemSet itemSet
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x2B32B11520626229, // _GET_VOLUME_AMOUNT_OF_INDEXED_ITEMS
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f, // float radius
0 // ItemSet itemSet
);Related VOLUME natives
- _GET_VOLUME_BOUNDS
- _GET_VOLUME_RELATIONSHIP
- _ADD_BOX_VOLUME_TO_VOLUME_AGGREGATE
- _ADD_CYLINDER_VOLUME_TO_VOLUME_AGGREGATE
- _ADD_SPHERE_VOLUME_TO_VOLUME_AGGREGATE
- _ADD_VOLUME_TO_VOLUME_AGGREGATE
- DOES_VOLUME_COLLIDE_WITH_ANY_VOLUME_LOCK
- GET_VOLUME_COORDS
- GET_VOLUME_LOCK_REQUEST_STATUS
- GET_VOLUME_ROTATION
- GET_VOLUME_SCALE
- _ADD_BOUNDS_TO_AGGREGATE_VOLUME
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.