GET_CLOSEST_FIRE_POS
Finds the fire closest to the given coordinates, writes its position to outPosition and returns true if one exists.
Signature
BOOL GET_CLOSEST_FIRE_POS(Vector3* outPosition, float x, float y, float z); // 0xB646FB657F448261 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | outPosition | Vector3* (out pointer) |
| 2 | x | float |
| 3 | y | float |
| 4 | z | float |
Facts
| 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.
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// 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) {
// ...
}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>();Related FIRE natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.