GET_RAYFIRE_MAP_OBJECT
Returns the rayfire map object named name within radius of the given coordinates.
Signature
Object GET_RAYFIRE_MAP_OBJECT(float x, float y, float z, float radius, const char* name); // 0xB48FCED898292E52 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x | float |
| 2 | y | float |
| 3 | z | float |
| 4 | radius | float |
| 5 | name | const char* |
Facts
| Name | GET_RAYFIRE_MAP_OBJECT |
|---|---|
| Hash | 0xB48FCED898292E52 |
| Namespace | |
| Returns | Object |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local objectOut = Citizen.InvokeNative(0xB48FCED898292E52, -- GET_RAYFIRE_MAP_OBJECT
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0, -- float radius
"text", -- const char* name
Citizen.ResultAsInteger()
)
print(objectOut)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const objectOut = Citizen.invokeNative("0xB48FCED898292E52", // GET_RAYFIRE_MAP_OBJECT
0.0, // float x
0.0, // float y
0.0, // float z
0.0, // float radius
"text", // const char* name
Citizen.resultAsInteger()
);
console.log(objectOut)int objectOut = Function.Call<int>((Hash)0xB48FCED898292E52, // GET_RAYFIRE_MAP_OBJECT
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f, // float radius
"text" // const char* name
);Related OBJECT natives
- GET_RAYFIRE_MAP_OBJECT_ANIM_PHASE
- GET_STATE_OF_RAYFIRE_MAP_OBJECT
- DOES_RAYFIRE_MAP_OBJECT_EXIST
- SET_STATE_OF_RAYFIRE_MAP_OBJECT
- GET_CLOSEST_OBJECT_OF_TYPE
- GET_OBJECT_FRAGMENT_DAMAGE_HEALTH
- GET_PICKUP_OBJECT
- _GET_LIGHT_INTENSITY_FROM_OBJECT
- _GET_OBJECT_FRAGMENT_COUNT
- _GET_OBJECT_LIGHT_INTENSITY
- GET_OFFSET_FROM_COORD_AND_HEADING_IN_WORLD_COORDS
- GET_PICKUP_COORDS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.