-
-
Notifications
You must be signed in to change notification settings - Fork 499
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Currently, if we use setElementHealth(player, 0), the parameters of onPlayerWasted will be incorrect.
(similar to #2273)
To reproduce
Code used to test:
Client-side:
addEventHandler('onClientPlayerWasted', root, function(killer, weapon, bodypart, stealth)
outputConsole(inspect{
'onClientPlayerWasted:',
"killer:", killer,
"weapon:", weapon,
"bodypart:", bodypart,
"stealth:", stealth,
})
end)Server-side:
addEventHandler('onPlayerWasted', root, function(totalAmmo, killer, weapon, bodypart, stealth)
outputConsole(inspect{
'onPlayerWasted:',
"totalAmmo:", totalAmmo,
"killer:", killer,
"weapon:", weapon,
"bodypart:", bodypart,
"stealth:", stealth
})
end)Expected behaviour
I would expect the parameters to be the same as those resulting in onClientPlayerWasted.
Version
Server: MTA:SA Server v1.5.8-release-20927
Client: Multi Theft Auto v1.5.8-release-20927
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
