joaat 哈希计算器
在浏览器里批量计算任意字符串的 GTA V / RDR2 joaat 哈希(GetHashKey)。输出有符号、无符号和十六进制,批量列表还会附上现成的 Lua 哈希表。
工具下面的说明目前是英文的。
输入
结果
无符号
有符号(int32)
十六进制
Lua 反引号
What is joaat?
GTA V and RDR2 identify models, weapons, animations and most other assets by a 32-bit Jenkins one-at-a-time hash of their lower-cased name. In FiveM it is exposed as GetHashKey(name), joaat(name) or the Lua backtick shorthand `name`, which is resolved at compile time.
Signed vs unsigned
The hash is an unsigned 32-bit number, but many natives and dumps show it as a signed int32. Both refer to the same model: 3078201489 and -1216765807 are both adder.
local model = `adder` -- compile-time hash
RequestModel(model)
while not HasModelLoaded(model) do Wait(0) end
local veh = CreateVehicle(model, coords.x, coords.y, coords.z, heading, true, false)