ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client events
  3. onClientPlayerWasted

Event

onClientPlayerWasted

A player (local or another) died.

Handler

addEventHandler("onClientPlayerWasted", root, function() ... end)

Differences from MTA:SA

  • These MTA:SA parameters are not here: element killer, int weapon, int bodypart, bool stealth, int animGroup, int animID

In MTA:SA

function(element killer, int weapon, int bodypart, bool stealth, int animGroup, int animID)

Source

source is the player.

Example

addEventHandler("onClientPlayerWasted", localPlayer, function()
    outputChatBox("Zginąłeś. Odrodzenie za chwilę.")
end)

See also