本文へスキップ

joaat ハッシュ計算

GTA V / RDR2 の joaat ハッシュ (GetHashKey) を、任意の文字列に対してまとめて、完全にブラウザー内で計算します。符号付き、符号なし、16 進で出力し、まとめて処理したときは Lua のハッシュテーブルも作れます。

このツールと解説は今のところ英語です。

計算ツールハッシュドキュメントを読む

Input

Result

Unsigned
Signed (int32)
Hex
Lua backtick

What is joaat?

GTA V and RDR2 identify models, weapons, animations and most other assets by a 32-bitJenkins one-at-a-time hash of their lower-cased name. In FiveM it is exposed asGetHashKey(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)