Add On Vehicle Hashes

For vanilla vehicles, theres lists of the hashes
Example:
vehicle_names = {
[80636076] = ‘dominator’,
[904750859] = ‘mule’,
[-1627000575] = ‘police2’,
[1032823388] = ‘ninef’,
[-1461482751] = ‘ninef2’,
[-1450650718] = ‘prairie’,
[-1800170043] = ‘gauntlet’,
[523724515] = ‘voodoo2’,
[1126868326] = ‘bfinjection’,
[-1207771834] = ‘rebel’,
[-2030171296] = ‘cognoscenti’,
[-685276541] = ‘emperor’,
[-1289722222] = ‘ingot’,
[1645267888] = ‘rancherxl’,
[767087018] = ‘alpha’,
[-1041692462] = ‘banshee’,
[1039032026] = ‘blista2’,
[-1045541610] = ‘comet2’,
[-566387422] = ‘elegy2’,
[-746882698] = ‘schwarzer’,
[1531094468] = ‘tornado2’,
[758895617] = ‘ztype’,
[-1216765807] = ‘adder’,
[1426219628] = ‘fmj’,
[1878062887] = ‘baller3’,
}

But how would I get the hash of an add on vehicle?

GetHashKey(‘blah’), if your car is called ‘blah’.

Also, in Lua, to pass a model name to a native using the ‘Hash’ type in the native reference, you can just pass a string: no need to hash it.

okay, so since the dominator is [80636076] = ‘dominator’, for the add on I can do [i8] = 'BMW I8 (where i8 is the spawn name) right?

1 Like

Use OpenIV’s Hash Generator found in the tools dropdown menu. You can create a hash for anything you want.

4 Likes

Oh wow, never noticed that was a tool, but I was able to add it to the car shop, thanks man!

1 Like

Did this work? Doing something similar

Yes, I added a couple add-ons to the server dump car garage (where you can buy, and retrieve the vehicle)

I’m making an addon pack and I’m really confused on the vehicle hashes. If I’m adding a car to the vehicle_names.lua, what do I add?

For example, I have a car named SASPSLICK, besides the hash missing, is this what it’s supposed to look like?

Citizen.CreateThread(function()
– SASPSLICK
AddTextEntry(’______’, ‘Saspslick’)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.