- Documentation
- Client events
- 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)