onPlayerDetonateSatchels | Multi Theft Auto: Wiki Skip to content

onPlayerDetonateSatchels

Client-side
Server-side
Shared

This event is triggered every time satchels are detonated - either by a player or through detonateSatchels.

Parameters

This event does not pass any parameters to the handler function.

Source

element: The source of this event is the player whose satchels are being detonated.

Canceling

If this event is canceled, the satchels will not detonate.

Code Examples

server

The below example will notify everyone on the server when someones Satchel(s) get detonated

addEventHandler("onPlayerDetonateSatchels", root, function()
local msg = string.format("%s's Satchels has been detonated", getPlayerName(source))
outputChatBox(msg)
end)

See Also