StartScriptFire
Docslocal retval = StartScriptFire(X, Y, Z, maxChildren, isGasFire)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.
Parameters
| Name | Type | Description |
|---|---|---|
X | float | — |
Y | float | — |
Z | float | — |
maxChildren | int | — |
isGasFire | BOOL | — |
Quick Snippet: Get CoordinatesXYZ
XYZAdd this command to your client script to retrieve precise locations in-game.
-- Add this to your client.lua. Type /pos in-game to copy coords.
RegisterCommand('pos', function()
local ped = PlayerPedId()
local coords = GetEntityCoords(ped)
local heading = GetEntityHeading(ped)
local output = string.format("vector4(%.2f, %.2f, %.2f, %.2f)", coords.x, coords.y, coords.z, heading)
print(output)
TriggerEvent('chat:addMessage', { args = { '^4[COORD]^0', output } })
end)Returns
FireIdReturns a fire instance ID.