M MY Multiplayer: Wiki
Side
Kind

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

NameTypeDescription
elementelementThe player, ped, vehicle or object.
onFirebooltrue 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)

See also