Getting Started with Events

From RAGE Multiplayer Wiki
Revision as of 19:55, 11 October 2018 by Unknown (talk | contribs) (Created page with "== Introduction == Events are the core scripting system for RAGE:MP. They are registered upon your request and triggered in a certain situation, For example, PlayerEnterChe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Introduction

Events are the core scripting system for RAGE:MP. They are registered upon your request and triggered in a certain situation, For example, PlayerEnterCheckpoint triggers when a player enters a checkpoint, so the event is automatically triggered and returns for you the Player that entered the checkpoint and the Checkpoint that he entered.

Events system

In-order to use the events you need to register the event into the events tree using addEvent.
There are 2 types of Events:

  • Built in events
  • Custom events

Built in events

They are events provided by RAGE:MP to be auto-triggered in a certain situation as we mentioned in the beginning (a Player entering a Checkpoint).

These are listed on the following pages:

Custom events

They are events build for you to control/call them anytime you want and in any situation you create for the Player.

Using events