Trigger: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "Sends data/trigger events from html to your JS file. == Syntax == <syntaxhighlight lang="typescript"> mp.trigger('event', params) </syntaxhighlight> === '''Required Argume...")
 
Line 10: Line 10:


*'''event''': '''<font color='green'>String</font>'''
*'''event''': '''<font color='green'>String</font>'''
*'''args''': '''<font color = 'red'>int</font>''' or '''<font color = 'red'>String</font>'''
*'''params''': '''<font color = 'red'>int</font>''' or '''<font color = 'green'>String</font>'''


=== '''Return Value''' ===
=== '''Return Value''' ===

Revision as of 19:24, 14 December 2017

Sends data/trigger events from html to your JS file.

Syntax

mp.trigger('event', params)

Required Arguments

  • event: String
  • params: int or String

Return Value

  • Unknown

Example

//todo