START_SCRIPT_FIRE
Starts a fire:
Hash
0x6B83617E04503888Runtime name
StartScriptFireNamespaceFIRE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x6B83617E04503888Signature
FireId START_SCRIPT_FIRE(float x, float y, float z, int p3, float p4, BOOL p5, const char* soundsetName, float p7, int p8);Parameters
| Name | Type | Description |
|---|---|---|
x | float | — |
y | float | — |
z | float | — |
p3 | int | — |
p4 | float | — |
p5 | BOOL | — |
soundsetName | const char* | — |
p7 | float | — |
p8 | int | — |
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
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#
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());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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.