Player::restoreStamina: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
mp.events.add('render', () => {
    mp.game.player.restoreStamina(100);
});
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Player_function_c}}
{{Player_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 23:15, 26 October 2020

Syntax

player.restoreStamina(p1);

Required Arguments

  • p1: float

Return value

  • Undefined

Example

mp.events.add('render', () => {
    mp.game.player.restoreStamina(100);
});

See also