PlayerClient

restorePlayerStamina

RESTORE_PLAYER_STAMINA0xA352C1B864CAFD33

The GTA V native RESTORE_PLAYER_STAMINA of the PLAYER namespace, as LS:MP client scripts call it: the global function restorePlayerStamina, in JavaScript and in Lua.

SignatureJavaScript
restorePlayerStamina(player: Player, p1: number): void
SignatureLua
restorePlayerStamina(player: Player, p1: number)

Usage

JavaScript
restorePlayerStamina(player, p1);
Lua
restorePlayerStamina(player, p1)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger
p1floatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Player PLAYER
In the game
void RESTORE_PLAYER_STAMINA(Player player, float p1)
Hash
0xA352C1B864CAFD33

Open in the interactive natives reference