mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

onClientPlayerWasted bug

Open 669344682 opened this issue 3 years ago • 5 comments

image image Background: client game speed will change to be slow when onClientPlayerWasted triggered

Besides, onClientPedWasted doesn't have any effects.

669344682 avatar Jan 16 '22 16:01 669344682

Those screenshots don't show how the game speed has changed.

ArranTuna avatar Jan 16 '22 16:01 ArranTuna

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)

Lpsd avatar Jan 16 '22 18:01 Lpsd

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.

PlatinMTA avatar Jan 16 '22 18:01 PlatinMTA

Yeah, that's what I'm trying to ascertain

Lpsd avatar Jan 16 '22 18:01 Lpsd

Yes, you are right, I have changed the game speed when player wasted. Does it will affect Judgment of death?

669344682 avatar May 13 '22 11:05 669344682