DetonateSatchels

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This function can be used to detonate a players satchels.

Syntax

Click to collapse [-]
Client
bool detonateSatchels()
Click to collapse [-]
Server
bool detonateSatchels(player Player)

Returns

Returns true if successful, false otherwise.

Example

The below example allows a player to detonate any of their placed satchels via the command /blowsatchels (Client-side)

Click to collapse [-]
Client-side
addCommandHandler("blowsatchels",
    function()
        detonateSatchels()
    end
)

The below example allows a player to detonate any of their placed satchels via the command /blowsatchels (Server-side)

Click to collapse [-]
Server-side
addCommandHandler("blowsatchels",
    function(sourcePlayer, commandName)
        detonateSatchels(sourcePlayer)
    end
)

See also