Skip to content

setFireDamageTargets

Shared
NEON APIManaged fire

Available in Neon, not standard MTA

Restricts a managed fire to damaging only selected element categories.

Syntax

bool setFireDamageTargets(fire theFire, table targets)

Arguments

theFirefire

Managed fire element.

targetstable

Table with optional players, peds, vehicles and objects booleans. Omitted keys default to true.

Table keys

playersbooloptional · default true

Whether the fire damages players.

pedsbooloptional · default true

Whether the fire damages peds.

vehiclesbooloptional · default true

Whether the fire damages vehicles.

objectsbooloptional · default true

Whether the fire damages objects.

Returns

true when applied; false for an invalid element or table.

Ownership and lifecycle

A managed fire is an element owned by the resource that created it, so stopping that resource extinguishes its fires. Server-created fires are synchronized to every client, and lifetime is tracked as relative remaining time so a client joining mid-burn receives what is left.

Important behavior
  • A fire that should burn scenery but never hurt players is a mask change, not a separate system.

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →