joaat

joaat(str)uint

全局函数。Jenkins One-At-A-Time 哈希,用于脚本名、模型名等。script_local.new("freemode", …) 在第一个参数传字符串时,与对本函数传入同名字符串得到的结果一致;若传整数则表示你已经算好的脚本哈希,见 脚本内存总览 · script_id

参数类型说明
strstring待哈希的 ASCII 字符串(如 "freemode""adder"
local hash = joaat("freemode")
-- hash == 0xBD245FC4