PlayerEnterCheckpoint: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
Line 6: Line 6:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
mp.events.add("playerEnterCheckpoint", (checkpoint) => {
mp.events.add("playerEnterCheckpoint", (player, checkpoint) => {
  // To what you want.
  // Do what you want.
});
});
</syntaxhighlight>
</syntaxhighlight>

Revision as of 02:18, 1 May 2018

Event triggered when a player enters into a checkpoint

Parameters

  • checkpoint

Example

mp.events.add("playerEnterCheckpoint", (player, checkpoint) => {
 // Do what you want.
});