Globals::joaat: Difference between revisions
(Made more clear syntax description) |
m (Fix types) |
||
| Line 15: | Line 15: | ||
<pre> | <pre> | ||
mp.game.joaat(key: String): Number; | mp.game.joaat(key: String): Number; | ||
mp.game.joaat(keys: String[]): Number; | mp.game.joaat(keys: String[]): Number[]; | ||
</pre> | </pre> | ||
}} | }} | ||
Latest revision as of 12:10, 17 December 2021
This function generates hashes/arrays of hashes (hash is integer) using strings/arrays of strings. Those hashes could be used to set entity model.
The name "joaat" stands for Jenkin's One At A Time hashing function.
Syntax
Server-Side
mp.joaat(key: String): Number; mp.joaat(keys: String[]): Number[]
Client-Side
mp.game.joaat(key: String): Number; mp.game.joaat(keys: String[]): Number[];
Examples
Server-Side
mp.joaat("bati");
mp.joaat(["bati", "benson"]);
Client-Side
mp.game.joaat("bati");
mp.game.joaat(["bati", "benson"]);
See also
- GetHashKey - Similar function in C# Bridge
- Functions: