Fetching players stamina

can’t seem to get the proper values for player stamina working because GetPedStamina(PlayerPedId()) doesn’t appear to work, and the getattribute natives aren’t sending me the right values.

Does anyone know how to get the players stamina level?

I get this might be an old thread, but in case you still need help with this; have you tried using PlayerId() that’s seemed to fix most my issues with getting or setting values to player peds. Some thing like this would be it then: GetPedStamina(PlayerId())