The Lab
FIRE native

_GET_CLOSEST_FIRE_POS_IN_VOLUME

returns BOOL10 paramsbuild 1232

Finds the closest fire inside the described box volume, writes its position to outPosition and returns true if one was found.

Signature

C
BOOL _GET_CLOSEST_FIRE_POS_IN_VOLUME(Vector3* outPosition, float posX, float posY, float posZ, float rotX, float rotY, float rotZ, float scaleX, float scaleY, float scaleZ); // 0x559FC1D310813031 b1232

Parameters

#NameType
1outPositionVector3* (out pointer)
2posXfloat
3posYfloat
4posZfloat
5rotXfloat
6rotYfloat
7rotZfloat
8scaleXfloat
9scaleYfloat
10scaleZfloat

Facts

Facts about _GET_CLOSEST_FIRE_POS_IN_VOLUME
Name
_GET_CLOSEST_FIRE_POS_IN_VOLUME
Hash
0x559FC1D310813031
Namespace
Returns
BOOL
Game build
1232

Examples

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

Lua
local result, outPosition = Citizen.InvokeNative(0x559FC1D310813031, -- _GET_CLOSEST_FIRE_POS_IN_VOLUME
  Citizen.PointerValueVector(), -- Vector3* outPosition
  0.0, -- float posX
  0.0, -- float posY
  0.0, -- float posZ
  0.0, -- float rotX
  0.0, -- float rotY
  0.0, -- float rotZ
  0.0, -- float scaleX
  0.0, -- float scaleY
  0.0, -- float scaleZ
  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("0x559FC1D310813031", // _GET_CLOSEST_FIRE_POS_IN_VOLUME
  Citizen.pointerValueVector(), // Vector3* outPosition
  0.0, // float posX
  0.0, // float posY
  0.0, // float posZ
  0.0, // float rotX
  0.0, // float rotY
  0.0, // float rotZ
  0.0, // float scaleX
  0.0, // float scaleY
  0.0, // float scaleZ
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var outPositionArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x559FC1D310813031, // _GET_CLOSEST_FIRE_POS_IN_VOLUME
  outPositionArg, // Vector3* outPosition
  0.0f, // float posX
  0.0f, // float posY
  0.0f, // float posZ
  0.0f, // float rotX
  0.0f, // float rotY
  0.0f, // float rotZ
  0.0f, // float scaleX
  0.0f, // float scaleY
  0.0f // float scaleZ
);
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.