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 | console.log(mp.joaat("bati")); // 4180675781 - server | ||
console.log(mp.game.joaat(["bati", "benson"])); // [4180675781, 2053223216] | console.log(mp.game.joaat(["bati", "benson"])); // [4180675781, 2053223216] - clientside | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 23:21, 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.joaat("bati")); // 4180675781 - server
console.log(mp.game.joaat(["bati", "benson"])); // [4180675781, 2053223216] - clientside