Globals::invoke: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
mNo edit summary
Line 6: Line 6:


==Syntax==
==Syntax==
<div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;">
<div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div>
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
mp.game.invoke(hash, [, ...args])
mp.game.invoke(hash, [, ...args])
</syntaxhighlight>
</syntaxhighlight>
</div>
 
==Example==
==Example==
<div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;">
<div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;">
Line 19: Line 17:
</syntaxhighlight>
</syntaxhighlight>
</div>
</div>
[[Category:Clientside API]]

Revision as of 11:17, 2 June 2018

Invokes specified native function

Parameters

  • hash: String
  • args: Any

Syntax

mp.game.invoke(hash, [, ...args])

Example

Client-Side
mp.game.invoke('0xBBAF4B768DDB7572', player, true) // 0xBBAF4B768DDB7572 - FREEZE_ENTITY_POSITION (1.39)