PlayerResurrect

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

This event is called everytime a player resurrects.

Client-Side Event

C.png C# Js.png JavaScript


C# Syntax
C.png

public delegate void OnPlayerResurrectDelegate();

Parameters

This event has no parameters

Example

The example below shows a chat message to the client when they respawn.

Events.OnPlayerResurrect += OnPlayerResurrect;
public void OnPlayerResurrect()
{
    RAGE.Chat.Output($"YOU'RE ALIVE!?");
}


JavaScript Syntax
Jslogo.png

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

Parameters

This event has no parameters

Example

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!');
});


See also