Globals::joaat: Difference between revisions

From RAGE Multiplayer Wiki
m (wiki link)
Line 29: Line 29:
== See also ==
== See also ==
* [https://wiki.gtanet.work/index.php?title=GetHashKey GetHashKey] - Similar function in C# Bridge
* [https://wiki.gtanet.work/index.php?title=GetHashKey GetHashKey] - Similar function in C# Bridge
{{GameGlobals}}


[[Category:Server-side Function]]
[[Category:Server-side Function]]
[[Category:Client-side Function]]
[[Category:Client-side Function]]
[[Category:Shared Function]]
[[Category:Shared Function]]

Revision as of 08:29, 6 November 2019

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

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

See also