Globals::joaat: Difference between revisions
m (Replaced HTML with template) |
m (in case some people wonder... + category) |
||
| Line 1: | Line 1: | ||
This function generates hashes/arrays of hashes (hash is integer) using strings/arrays of strings. Those hashes could be used to set entity model. | 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 [[en:wikipedia:Jenkins_hash_function#one-at-a-time|'''Jenkin's One At A Time''']]. | |||
==Syntax== | ==Syntax== | ||
| Line 24: | Line 26: | ||
</pre> | </pre> | ||
}} | }} | ||
[[Category:Server-side Function]] | |||
[[Category:Client-side Function]] | |||
[[Category:Shared Function]] | |||
Revision as of 16:33, 4 May 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.
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"]);