Globals::joaat: Difference between revisions
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
console.log(mp.joaat("bati")); // 4180675781 | console.log(mp.game.joaat("bati")); // 4180675781 | ||
console.log(mp.joaat(["bati", "benson"])); // [4180675781, 2053223216] | console.log(mp.game.joaat(["bati", "benson"])); // [4180675781, 2053223216] | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 23:20, 9 July 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
events.call(eventName, optionalArguments);
Example
console.log(mp.game.joaat("bati")); // 4180675781
console.log(mp.game.joaat(["bati", "benson"])); // [4180675781, 2053223216]