Hash a name or a list
Switch between one name and a whole list. Values are lowercased before hashing, because Rockstar treats ADDER and adder as the same asset.
Lua's GetHashKey() returns the signed value. C# and most raw native wrappers use the unsigned value. Both are the same 32 bits.
local hash = GetHashKey('adder') -- -1216765807
| Name | Unsigned | Signed | Hex |
|---|
How the JOAAT hash works
JOAAT stands for Jenkins one-at-a-time. Rockstar uses it for every named asset in GTA V, and FiveM exposes it through GetHashKey(), joaat() and backtick hashes in Lua 5.4.
- Lowercase the input.
ADDER,Adderandadderall hash to the same value. - Add each byte into a 32-bit accumulator, mix the bits, and repeat.
- Finalize with three more shifts and additions.
- Read the result as unsigned for C#, signed for Lua, or hex for logs.
Backtick hashes such as `adder` are computed once when the script loads, so they are the cheapest option in a hot loop. GetHashKey() works in both Lua and JavaScript but costs a native call each time.
h = 0
for each byte c in lowercase(input):
h = (h + c) & 0xFFFFFFFF
h = (h + (h << 10)) & 0xFFFFFFFF
h = h ^ (h >> 6)
h = (h + (h << 3)) & 0xFFFFFFFF
h = h ^ (h >> 11)
h = (h + (h << 15)) & 0xFFFFFFFF
FiveM JOAAT Hash FAQ
JOAAT is the Jenkins one-at-a-time hash Rockstar uses for named GTA V assets. FiveM converts names with GetHashKey(), so a vehicle, weapon, ped or particle can be stored and compared as a 32-bit number instead of a string.
Lua returns a signed 32-bit integer, which can be negative. C# and most native wrappers use the unsigned value. -1216765807, 3078201489 and 0xB779A091 are the same hash written three ways.
No. GetHashKey, joaat() and backtick hashes lowercase A to Z before hashing, so ADDER and adder match. Accented characters are not normalized and are hashed as they are.
Use the signed value in Lua, the unsigned value in C#, and the hex form when you compare against logs or memory dumps. All three describe the same 32 bits.
Related FiveM tools
Hashes show up everywhere in server work. These tools use the same values.
Run your FiveM server on NolimitHost
NVMe storage, one-click artifact updates and 10Tbit/s DDoS protection on every FiveM plan.