txAdmin
txAdmin copied to clipboard
Getting PlayerPed fails "Somehow" "fix?"
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.
added a new commit to rule out RegisterKeyMapping
for RedM
This PR got polluted with a bunch of extra changes that I rather not have in the commit.
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!