_GET_CLOSEST_FIRE_POS_IN_VOLUME
Finds the closest fire inside the described box volume, writes its position to outPosition and returns true if one was found.
Signature
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 b1232Parameters
| # | Name | Type |
|---|---|---|
| 1 | outPosition | Vector3* (out pointer) |
| 2 | posX | float |
| 3 | posY | float |
| 4 | posZ | float |
| 5 | rotX | float |
| 6 | rotY | float |
| 7 | rotZ | float |
| 8 | scaleX | float |
| 9 | scaleY | float |
| 10 | scaleZ | float |
Facts
| 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.
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// 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) {
// ...
}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>();Related FIRE natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.