PlayerResurrect: Difference between revisions

From RAGE Multiplayer Wiki
Line 10: Line 10:


=== Parameters ===
=== Parameters ===
* '''None''', this event has no params.
* '''none''', this event has no params.


== Examples ==
== Examples ==

Revision as of 20:14, 22 February 2018

Client-Side

This event is called everytime a player resurrects.

Syntax

mp.events.add('playerResurrect', () => {});

Parameters

  • none, this event has no params.

Examples

The example below shows up a message for a player when he resurrects.

mp.events.add('playerResurrect', () => {
    mp.gui.chat.push('Like a fenix raised from the ashes, you came back to us!');
});