TomGrobbe / MenuAPI

FiveM C# Menu API. Designed specifically as a replacement of NativeUI for vMenu. Full safezone scaling supported, both left and right aligned menus supported.
https://docs.vespura.com/mapi
62 stars 45 forks source link

Change Game.Player to Game.PlayerPed #18

Closed Local9 closed 5 years ago

Local9 commented 5 years ago

For some reason in my testing the Game.Player.IsDead doesn't return to a false state after death, changing this to use Game.PlayerPed.IsDead returned the menu to its expected working state as this value does get updated when the player is resurrected.

Additional note; this was with CitizenFX.Core.Client 1.0.1412

Local9 commented 5 years ago

Incorrect native used for resurrection.