- Documentation
- Server events
- onFireExtinguished
Event
onFireExtinguished
A fire went out or was put out.
Handler
addEventHandler("onFireExtinguished", root, function(fireId, x, y, z) ... end)Parameters
fireIdint- Fire number.
x, y, zfloat- Position.
Source
source is the player who put the fire out, or root.
Example
addEventHandler("onFireExtinguished", root, function()
if getElementType(source) == "player" then givePlayerMoney(source, 20) end
end)