The Lab
OBJECT native

GET_RAYFIRE_MAP_OBJECT

returns Object5 paramsbuild 1207

Returns the rayfire map object named name within radius of the given coordinates.

Signature

C
Object GET_RAYFIRE_MAP_OBJECT(float x, float y, float z, float radius, const char* name); // 0xB48FCED898292E52 b1207

Parameters

#NameType
1xfloat
2yfloat
3zfloat
4radiusfloat
5nameconst char*

Facts

Facts about GET_RAYFIRE_MAP_OBJECT
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.

Lua
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)
JavaScript
// 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)
C#
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
);
All OBJECT natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.