Globals::joaat: Difference between revisions
No edit summary |
No edit summary |
||
| Line 17: | Line 17: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</div> | </div> | ||
<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>Client-Side</b></div> | <div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div> | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
Revision as of 15:08, 8 December 2017
This function generates hashes/arrays of hashes (hash is integer) using strings/arrays of strings. Those hashes could be used to set entity model.
Syntax
mp.joaat(String);
mp.joaat(String[]);
mp.game.joaat(String);
mp.game.joaat(String[]);
Examples
Server-Side
mp.joaat("bati");
mp.joaat(["bati", "benson"]);
Client-Side
mp.game.joaat("bati");
mp.game.joaat(["bati", "benson"]);