joaat ハッシュ計算
GTA V / RDR2 の joaat ハッシュ (GetHashKey) を、任意の文字列に対してまとめて、完全にブラウザー内で計算します。符号付き、符号なし、16 進で出力し、まとめて処理したときは Lua のハッシュテーブルも作れます。
ツールの下の解説は今のところ英語です。
入力
結果
符号なし
符号付き (int32)
16 進数
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)