Events::binded

From RAGE Multiplayer Wiki
Revision as of 17:43, 4 March 2024 by Shr0x (talk | contribs) (Created page with "__TOC__ {{SharedFunctionJS}} {{JSContainer| ===Returned value=== *{{RageType|An array of event names and handlers}} ===Example=== <pre> mp.events.add('myevent', () => { //code here }); console.log(mp.events.binded); //Output [{ 'myevent': [Function (anonymous)] }] </pre> }} ==See Also== {{Event_functions}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Shared
Function

 JavaScript



JavaScript Syntax

Returned value

  • An array of event names and handlers

Example

mp.events.add('myevent', () => {
    //code here
});

console.log(mp.events.binded); //Output [{ 'myevent': [Function (anonymous)] }]


See Also