SetElementOnFire: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(No difference)

Latest revision as of 03:14, 31 December 2024

ADDED/UPDATED IN VERSION 1.6.0 r22864:
This function can be used to set a element on fire or extinguish a fire on it. Supported types are ped, vehicle and object.
[[{{{image}}}|link=|]] Note: Function on the client side only works on elements created on the client side.

Syntax

bool setElementOnFire ( element theElement, bool isOnFire )

OOP Syntax Help! I don't understand this!

Method: element:setOnFire(...)
Variable: .onFire
Counterpart: isElementOnFire


Required Arguments

  • theElement: The element that we want to set/unset.
  • isOnFire: true to set the element on fire, false to extinguish any fire on it.

Returns

Returns true if successful, false otherwise

Example

Accessories-text-editor.png Script Example Missing Function SetElementOnFire needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


See Also