Native referenceFiveM

RESTORE_PLAYER_STAMINA

0xA352C1B864CAFD33 PLAYER
FUNCTION SIGNATURE
void RESTORE_PLAYER_STAMINA(Player player, float percentage);
Property Value
Native Name RESTORE_PLAYER_STAMINA
Hash 0xA352C1B864CAFD33
Return Type void
Parameters player (Player), percentage (float)

Description: Adds a percentage to a players stamina

Parameters

  • player (Player) — player to restore the stamina for
  • percentage (float) — seems to be a percentage that ranges from 0.0 to 1.0 (1.0 being 100%)

Examples

Citizen.CreateThread(function()
  while true do
    RestorePlayerStamina(PlayerId(), 0.3)
    Citizen.Wait(15000) -- 15 seconds
  end
end)
Back to PLAYER