RedM Natives

START_SCRIPT_FIRE

Starts a fire:

Hash0x6B83617E04503888
Runtime nameStartScriptFire
NamespaceFIRE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x6B83617E04503888

Signature

FireId START_SCRIPT_FIRE(float x, float y, float z, int p3, float p4, BOOL p5, const char* soundsetName, float p7, int p8);

Parameters

NameTypeDescription
xfloat—
yfloat—
zfloat—
p3int—
p4float—
p5BOOL—
soundsetNameconst char*—
p7float—
p8int—

Returns FireId

Description

Starts a fire:

xyz: Location of fire
maxChildren: The max amount of times a fire can spread to other objects. Must be 25 or less, or the function will do nothing.
isGasFire: Whether or not the fire is powered by gasoline.

Usage

Lua
local retval = StartScriptFire(x, y, z, p3, p4, p5, soundsetName, p7, p8)

-- always works, by hash
local retval = Citizen.InvokeNative(0x6B83617E04503888, x, y, z, p3, p4, p5, soundsetName, p7, p8, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = StartScriptFire(x, y, z, p3, p4, p5, soundsetName, p7, p8);

// by hash
const retval = Citizen.invokeNative('0x6B83617E04503888', x + 0.0000001, y + 0.0000001, z + 0.0000001, p3, p4 + 0.0000001, p5, soundsetName, p7 + 0.0000001, p8, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x6B83617E04503888, x, y, z, p3, p4, p5, soundsetName, p7, p8);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.