GET HASH KEY

From GTAMods Wiki
Jump to navigation Jump to search
GET_HASH_KEY
Number of parameters: 1
Parameter #TypeDescription
1.StringModelName (Doesn't appear to be case-sensitive)
Return value:
TypeDescription
IntegerHashKey


This function can be used to get the hash keys that are required for spawning peds, vehicles, objects, etc.


Example:
CREATE_CHAR(22, GET_HASH_KEY("IG_Niko"), x, y, z, ped, true)
CREATE_CAR(GET_HASH_KEY("COMET"), x, y, z, vehicle, true)


Can find model names by opening the "peds.ide"/"vehicles.ide" files with Notepad, they are located in the following folders.
GTAIV\common\data\
GTAIV\common\data\
\TLAD\common\data\
\TBoGT\common\data\