mtasa-blue
mtasa-blue copied to clipboard
onClientPlayerWasted bug
Background: client game speed will change to be slow when onClientPlayerWasted triggered
Besides, onClientPedWasted doesn't have any effects.
Those screenshots don't show how the game speed has changed.
Which MTA version are you using? (F8 -> ver
)
By "game speed" are you talking about FPS / lag or the GTA game speed? If the latter, please show the return value of getGameSpeed being changed.
What happens if you delay the setVisible call using a timer, does isPedDead return true? e.g
addEventHandler("onClientPlayerWasted", localPlayer, function()
setTimer(setVisible, 1, 1, false) -- 1ms delay, try increasing if it doesn't work
end)
I think he is refering to the fact that isPedDead
returns FALSE when the player just died (clientside at least). Probably using a timer will make isPedDead
return true.
Yeah, that's what I'm trying to ascertain
Yes, you are right, I have changed the game speed when player wasted. Does it will affect Judgment of death?