Globals::joaat: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
m (Replaced HTML with template)
Line 2: Line 2:


==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">
<pre>
mp.joaat(String);
mp.joaat(String);
mp.joaat(String[]);
mp.joaat(String[]);
mp.game.joaat(String);
mp.game.joaat(String);
mp.game.joaat(String[]);
mp.game.joaat(String[]);
</syntaxhighlight>  
</pre>  


==Examples==
==Examples==
<div class="header" style="background-color: #408DAE; color: #FFFFFF; border: 2px solid #408DAE;">
{{ServersideCode|
<div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div>
<pre>
<syntaxhighlight lang="javascript">
mp.joaat("bati");
mp.joaat("bati");
mp.joaat(["bati", "benson"]);
mp.joaat(["bati", "benson"]);
</syntaxhighlight>
</pre>
</div>
}}


<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>
{{ClientsideCode|
<syntaxhighlight lang="javascript">
<pre>
mp.game.joaat("bati");
mp.game.joaat("bati");
mp.game.joaat(["bati", "benson"]);
mp.game.joaat(["bati", "benson"]);
</syntaxhighlight>
</pre>
</div>
}}

Revision as of 11:24, 26 October 2018

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"]);