The Lab
FIRE native

GET_CLOSEST_FIRE_POS

returns BOOL4 paramsbuild 1207

Finds the fire closest to the given coordinates, writes its position to outPosition and returns true if one exists.

Signature

C
BOOL GET_CLOSEST_FIRE_POS(Vector3* outPosition, float x, float y, float z); // 0xB646FB657F448261 b1207

Parameters

#NameType
1outPositionVector3* (out pointer)
2xfloat
3yfloat
4zfloat

Facts

Facts about GET_CLOSEST_FIRE_POS
Name
GET_CLOSEST_FIRE_POS
Hash
0xB646FB657F448261
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result, outPosition = Citizen.InvokeNative(0xB646FB657F448261, -- GET_CLOSEST_FIRE_POS
  Citizen.PointerValueVector(), -- Vector3* outPosition
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const [result, outPosition] = Citizen.invokeNative("0xB646FB657F448261", // GET_CLOSEST_FIRE_POS
  Citizen.pointerValueVector(), // Vector3* outPosition
  0.0, // float x
  0.0, // float y
  0.0, // float z
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var outPositionArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xB646FB657F448261, // GET_CLOSEST_FIRE_POS
  outPositionArg, // Vector3* outPosition
  0.0f, // float x
  0.0f, // float y
  0.0f // float z
);
Vector3 outPosition = outPositionArg.GetResult<Vector3>();
All FIRE natives

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