txAdmin icon indicating copy to clipboard operation
txAdmin copied to clipboard

Getting PlayerPed fails "Somehow" "fix?"

Open outsider31000 opened this issue 11 months ago • 2 comments

Somehow GetPlayerPed fails to get a player ped the other functions break because ped isnt valid.

breaking the loop if ped doesn't exist should Ignore getting ped info to avoid more errors

https://cdn.discordapp.com/attachments/704317933353959432/1219098739449528320/image.png?ex=660a112d&is=65f79c2d&hm=6d7b3dc3b31f7b92e39d7b8af8eaf0602503a017247760a61ba2d346f0c32d6f&

Edit: It happens when a player crash, but its random.

outsider31000 avatar Mar 18 '24 02:03 outsider31000

added a new commit to rule out RegisterKeyMapping for RedM image

outsider31000 avatar Mar 20 '24 13:03 outsider31000

This PR got polluted with a bunch of extra changes that I rather not have in the commit.

tabarra avatar Apr 01 '24 06:04 tabarra

I noticed that your code is breaking the loop, but we shouldn't do that.
So I re-implemented as a positive logic instead: 173a3b8c2db47a647baad9cb0d850b0cbb3a4294
Of course, thanks for the PR and for letting me know of this problem!

tabarra avatar May 08 '24 01:05 tabarra