ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setElementOnFire

Function

setElementOnFire

Sets an element on fire or puts it out. With a duration in milliseconds the fire goes out by itself.

Syntax

bool setElementOnFire(element theElement, bool burning [, int duration = bez limitu])

Arguments

theElementelement
The element.
burningbool
true sets on fire.
durationint, optional = bez limitu
Duration in milliseconds.Not in MTA:SA

Differences from MTA:SA

  • Arguments in a different colour differ from MTA:SA.

In MTA:SA

setElementOnFire(element theElement, bool isOnFire)

Returns

true on success.

Example

setElementOnFire(player, true, 5000)

See also