Player::taskRevive

From RAGE Multiplayer Wiki
Revision as of 18:29, 25 December 2024 by Shr0x (talk | contribs) (Created page with "{{ClientsideJsFunction}} {{JSContainer| === Summary === Revives a player, ending any death animations and restoring normal movement. === Syntax === <syntaxhighlight lang="javascript"> player.taskRevive(); </syntaxhighlight> === Required Parameters === None === Return Value === * '''undefined''' === Example === <syntaxhighlight lang="javascript"> // Revive the local player mp.players.local.taskRevive(); mp.gui.chat.push("The player has been revived."); </syntaxhighli...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



JavaScript Syntax


Summary

Revives a player, ending any death animations and restoring normal movement.

Syntax

player.taskRevive();

Required Parameters

None

Return Value

  • undefined

Example

// Revive the local player
mp.players.local.taskRevive();
mp.gui.chat.push("The player has been revived.");


See Also