Globals::invoke: Difference between revisions
No edit summary |
MrPancakers (talk | contribs) mNo edit summary |
||
| Line 6: | Line 6: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
mp.game.invoke(hash, [, ...args]) | mp.game.invoke(hash, [, ...args]) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==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)