| 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 forpercentage(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)