Difference between revisions of "GET HASH KEY"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{Native |np=1 |p1t=String |p1d=ModelName (Doesn't appear to be case-sensitive) |r=1 |rt=Integer |rd=HashKey }} This function can be used to get the hash keys that are require…')
 
m
 
Line 5: Line 5:
 
|r=1
 
|r=1
 
|rt=Integer
 
|rt=Integer
|rd=HashKey
+
|rd=[[List_of_models_hashes|HashKey]]
 
}}
 
}}
  

Latest revision as of 12:19, 18 February 2011

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\