_GET_ENTITIES_NEAR_POINT
Fills itemSet with entities within radius of the given point and returns how many were found.
Create the item set first and destroy it after reading the results.
Signature
int _GET_ENTITIES_NEAR_POINT(float x, float y, float z, float radius, ItemSet itemSet, int p5); // 0x59B57C4B06531E1E b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x | float |
| 2 | y | float |
| 3 | z | float |
| 4 | radius | float |
| 5 | itemSet | ItemSet |
| 6 | p5 | int |
Facts
| Name | _GET_ENTITIES_NEAR_POINT |
|---|---|
| Hash | 0x59B57C4B06531E1E |
| 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(0x59B57C4B06531E1E, -- _GET_ENTITIES_NEAR_POINT
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0, -- float radius
0, -- ItemSet itemSet
0, -- int p5
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("0x59B57C4B06531E1E", // _GET_ENTITIES_NEAR_POINT
0.0, // float x
0.0, // float y
0.0, // float z
0.0, // float radius
0, // ItemSet itemSet
0, // int p5
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x59B57C4B06531E1E, // _GET_ENTITIES_NEAR_POINT
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f, // float radius
0, // ItemSet itemSet
0 // int p5
);Related ENTITY natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.