Events::getAllOf

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

This function gets all handlers of the specified event.

Parameters

  • eventName: String

Return

  • Array

Syntax

let handlers = mp.events.getAllOf(eventName);

Example

Server-Side

The example below gets all handlers of "myEvent".

eventHandlers = mp.events.getAllOf('myEvent');