Globals::invoke: Difference between revisions
(Created page with "Invokes specified [https://cdn.rage.mp/public/natives/ native] function ==Parameters== * '''hash: <span style="color:#008017>String</span>''' * '''args: <span style="color:#0...") |
No edit summary |
||
| Line 6: | Line 6: | ||
==Syntax== | ==Syntax== | ||
<div class="header" style="background-color: # | <div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;"> | ||
<div style="margin: 10px 10px 10px 10px;"><b> | <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]) | ||
| Line 13: | Line 13: | ||
</div> | </div> | ||
==Example== | ==Example== | ||
<div class="header" style="background-color: # | <div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;"> | ||
<div style="margin: 10px 10px 10px 10px;"><b> | <div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div> | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
mp.game.invoke('0xBBAF4B768DDB7572', player, true) // 0xBBAF4B768DDB7572 - FREEZE_ENTITY_POSITION (1.39) | mp.game.invoke('0xBBAF4B768DDB7572', player, true) // 0xBBAF4B768DDB7572 - FREEZE_ENTITY_POSITION (1.39) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</div> | </div> | ||
Revision as of 11:15, 2 June 2018
Invokes specified native function
Parameters
- hash: String
- args: Any
Syntax
Client-Side
mp.game.invoke(hash, [, ...args])
Example
Client-Side
mp.game.invoke('0xBBAF4B768DDB7572', player, true) // 0xBBAF4B768DDB7572 - FREEZE_ENTITY_POSITION (1.39)