Globals::invoke: Difference between revisions
MrPancakers (talk | contribs) mNo edit summary |
m (Replaced HTML with template) |
||
| Line 6: | Line 6: | ||
==Syntax== | ==Syntax== | ||
< | <pre> | ||
mp.game.invoke(hash, [, ...args]) | mp.game.invoke(hash, [, ...args]) | ||
</ | </pre> | ||
==Example== | ==Example== | ||
{{ClientsideCode| | |||
< | <pre> | ||
mp.game.invoke('0xBBAF4B768DDB7572', mp.players.local.handle, true); // 0xBBAF4B768DDB7572 - FREEZE_ENTITY_POSITION (1.39) | |||
mp.game.invoke('0xBBAF4B768DDB7572', | </pre> | ||
</ | }} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
Revision as of 13:29, 26 October 2018
Invokes specified native function
Parameters
- hash: String
- args: Any
Syntax
mp.game.invoke(hash, [, ...args])
Example
Client-Side
mp.game.invoke('0xBBAF4B768DDB7572', mp.players.local.handle, true); // 0xBBAF4B768DDB7572 - FREEZE_ENTITY_POSITION (1.39)