setElementOnFire
Server
Sets an element and its children on fire, or puts them out, for every player.
Also exists on the client, with its own implementation: setElementOnFire
bool setElementOnFire(element element, bool onFire)
Parameters
| Name | Type | Description |
|---|---|---|
| element | element | The player, ped, vehicle or object. |
| onFire | bool | true to set it on fire, false to put it out. |
Returns
true if it applied to the element itself, false if it is not a player, ped, vehicle or object.
Example
addCommandHandler("burn", function(player)
setElementOnFire(player, true)
end)