-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodels.lua
More file actions
246 lines (238 loc) · 14 KB
/
models.lua
File metadata and controls
246 lines (238 loc) · 14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
PedModels = {
{label = 'Beach Female', model = 'a_f_m_beach_01'},
{label = 'Beverly Hills Female 1', model = 'a_f_m_bevhills_01'},
{label = 'Beverly Hills Female 2', model = 'a_f_m_bevhills_02'},
{label = 'Bodybuilder Female', model = 'a_f_m_bodybuild_01'},
{label = 'Business Female', model = 'a_f_m_business_02'},
{label = 'Downtown Female', model = 'a_f_m_downtown_01'},
{label = 'East SA Female 1', model = 'a_f_m_eastsa_01'},
{label = 'East SA Female 2', model = 'a_f_m_eastsa_02'},
{label = 'Fat Black Female', model = 'a_f_m_fatbla_01'},
{label = 'Fat Cult Female', model = 'a_f_m_fatcult_01'},
{label = 'Fat White Female', model = 'a_f_m_fatwhite_01'},
{label = 'Korean Female 1', model = 'a_f_m_ktown_01'},
{label = 'Korean Female 2', model = 'a_f_m_ktown_02'},
{label = 'Prologue Host Female', model = 'a_f_m_prolhost_01'},
{label = 'Salton Female', model = 'a_f_m_salton_01'},
{label = 'Skid Row Female', model = 'a_f_m_skidrow_01'},
{label = 'South Central Female 1', model = 'a_f_m_soucent_01'},
{label = 'South Central Female 2', model = 'a_f_m_soucent_02'},
{label = 'South Central MC Female', model = 'a_f_m_soucentmc_01'},
{label = 'Tourist Female', model = 'a_f_m_tourist_01'},
{label = 'Tramp Female', model = 'a_f_m_tramp_01'},
{label = 'Tramp Beach Female', model = 'a_f_m_trampbeac_01'},
{label = 'Gen Street Female', model = 'a_f_o_genstreet_01'},
{label = 'Indian Female', model = 'a_f_o_indian_01'},
{label = 'Korean Old Female', model = 'a_f_o_ktown_01'},
{label = 'Salton Old Female', model = 'a_f_o_salton_01'},
{label = 'South Central Old Female 1', model = 'a_f_o_soucent_01'},
{label = 'South Central Old Female 2', model = 'a_f_o_soucent_02'},
{label = 'Beach Young Female', model = 'a_f_y_beach_01'},
{label = 'Beverly Hills Young Female 1', model = 'a_f_y_bevhills_01'},
{label = 'Beverly Hills Young Female 2', model = 'a_f_y_bevhills_02'},
{label = 'Beverly Hills Young Female 3', model = 'a_f_y_bevhills_03'},
{label = 'Beverly Hills Young Female 4', model = 'a_f_y_bevhills_04'},
{label = 'Business Young Female 1', model = 'a_f_y_business_01'},
{label = 'Business Young Female 2', model = 'a_f_y_business_02'},
{label = 'Business Young Female 3', model = 'a_f_y_business_03'},
{label = 'Business Young Female 4', model = 'a_f_y_business_04'},
{label = 'Club Customer Female 1', model = 'a_f_y_clubcust_01'},
{label = 'Club Customer Female 2', model = 'a_f_y_clubcust_02'},
{label = 'Club Customer Female 3', model = 'a_f_y_clubcust_03'},
{label = 'East SA Young Female 1', model = 'a_f_y_eastsa_01'},
{label = 'East SA Young Female 2', model = 'a_f_y_eastsa_02'},
{label = 'East SA Young Female 3', model = 'a_f_y_eastsa_03'},
{label = 'Epsilon Young Female', model = 'a_f_y_epsilon_01'},
{label = 'Female Agent', model = 'a_f_y_femaleagent'},
{label = 'Fitness Young Female 1', model = 'a_f_y_fitness_01'},
{label = 'Fitness Young Female 2', model = 'a_f_y_fitness_02'},
{label = 'Gen Hot Young Female', model = 'a_f_y_genhot_01'},
{label = 'Golfer Young Female', model = 'a_f_y_golfer_01'},
{label = 'Hiker Young Female', model = 'a_f_y_hiker_01'},
{label = 'Hippie Young Female', model = 'a_f_y_hippie_01'},
{label = 'Hipster Young Female 1', model = 'a_f_y_hipster_01'},
{label = 'Hipster Young Female 2', model = 'a_f_y_hipster_02'},
{label = 'Hipster Young Female 3', model = 'a_f_y_hipster_03'},
{label = 'Hipster Young Female 4', model = 'a_f_y_hipster_04'},
{label = 'Indian Young Female', model = 'a_f_y_indian_01'},
{label = 'Juggalo Young Female', model = 'a_f_y_juggalo_01'},
{label = 'Runner Young Female', model = 'a_f_y_runner_01'},
{label = 'Rural Meth Addict Young Female', model = 'a_f_y_rurmeth_01'},
{label = 'SC Dressy Young Female', model = 'a_f_y_scdressy_01'},
{label = 'Skater Young Female', model = 'a_f_y_skater_01'},
{label = 'South Central Young Female 1', model = 'a_f_y_soucent_01'},
{label = 'South Central Young Female 2', model = 'a_f_y_soucent_02'},
{label = 'South Central Young Female 3', model = 'a_f_y_soucent_03'},
{label = 'Tennis Young Female', model = 'a_f_y_tennis_01'},
{label = 'Topless Young Female', model = 'a_f_y_topless_01'},
{label = 'Tourist Young Female 1', model = 'a_f_y_tourist_01'},
{label = 'Tourist Young Female 2', model = 'a_f_y_tourist_02'},
{label = 'Vinewood Young Female 1', model = 'a_f_y_vinewood_01'},
{label = 'Vinewood Young Female 2', model = 'a_f_y_vinewood_02'},
{label = 'Vinewood Young Female 3', model = 'a_f_y_vinewood_03'},
{label = 'Vinewood Young Female 4', model = 'a_f_y_vinewood_04'},
{label = 'Yoga Young Female', model = 'a_f_y_yoga_01'},
{label = 'Gen Casino Patron Young Female', model = 'a_f_y_gencaspat_01'},
{label = 'Smart Casino Patron Young Female', model = 'a_f_y_smartcaspat_01'},
{label = 'Beach Male', model = 'a_m_m_beach_01'},
{label = 'Beach Male 2', model = 'a_m_m_beach_02'},
{label = 'Beverly Hills Male 1', model = 'a_m_m_bevhills_01'},
{label = 'Beverly Hills Male 2', model = 'a_m_m_bevhills_02'},
{label = 'Business Male', model = 'a_m_m_business_01'},
{label = 'East SA Male 1', model = 'a_m_m_eastsa_01'},
{label = 'East SA Male 2', model = 'a_m_m_eastsa_02'},
{label = 'Farmer Male', model = 'a_m_m_farmer_01'},
{label = 'Fat Latino Male', model = 'a_m_m_fatlatin_01'},
{label = 'Gen Fat Male 1', model = 'a_m_m_genfat_01'},
{label = 'Gen Fat Male 2', model = 'a_m_m_genfat_02'},
{label = 'Golfer Male', model = 'a_m_m_golfer_01'},
{label = 'Hasidic Jew Male', model = 'a_m_m_hasjew_01'},
{label = 'Hillbilly Male 1', model = 'a_m_m_hillbilly_01'},
{label = 'Hillbilly Male 2', model = 'a_m_m_hillbilly_02'},
{label = 'Indian Male', model = 'a_m_m_indian_01'},
{label = 'Korean Male 1', model = 'a_m_m_ktown_01'},
{label = 'Malibu Male', model = 'a_m_m_malibu_01'},
{label = 'Mexican Country Male', model = 'a_m_m_mexcntry_01'},
{label = 'Mexican Laborer Male', model = 'a_m_m_mexlabor_01'},
{label = 'OG Boss Male', model = 'a_m_m_og_boss_01'},
{label = 'Paparazzi Male', model = 'a_m_m_paparazzi_01'},
{label = 'Polynesian Male', model = 'a_m_m_polynesian_01'},
{label = 'Prologue Host Male', model = 'a_m_m_prolhost_01'},
{label = 'Rural Meth Addict Male', model = 'a_m_m_rurmeth_01'},
{label = 'Salton Male 1', model = 'a_m_m_salton_01'},
{label = 'Salton Male 2', model = 'a_m_m_salton_02'},
{label = 'Salton Male 3', model = 'a_m_m_salton_03'},
{label = 'Salton Male 4', model = 'a_m_m_salton_04'},
{label = 'Skater Male', model = 'a_m_m_skater_01'},
{label = 'Skid Row Male', model = 'a_m_m_skidrow_01'},
{label = 'South Central Latino Male', model = 'a_m_m_socenlat_01'},
{label = 'South Central Male 1', model = 'a_m_m_soucent_01'},
{label = 'South Central Male 2', model = 'a_m_m_soucent_02'},
{label = 'South Central Male 3', model = 'a_m_m_soucent_03'},
{label = 'South Central Male 4', model = 'a_m_m_soucent_04'},
{label = 'Street Latino Male', model = 'a_m_m_stlat_02'},
{label = 'Tennis Male', model = 'a_m_m_tennis_01'},
{label = 'Tourist Male', model = 'a_m_m_tourist_01'},
{label = 'Tramp Male', model = 'a_m_m_tramp_01'},
{label = 'Tramp Beach Male', model = 'a_m_m_trampbeac_01'},
{label = 'Transvestite Male 1', model = 'a_m_m_tranvest_01'},
{label = 'Transvestite Male 2', model = 'a_m_m_tranvest_02'},
{label = 'Acult Male Old', model = 'a_m_o_acult_01'},
{label = 'Acult Male Old 2', model = 'a_m_o_acult_02'},
{label = 'Beach Old Male', model = 'a_m_o_beach_01'},
{label = 'Gen Street Old Male', model = 'a_m_o_genstreet_01'},
{label = 'Korean Old Male', model = 'a_m_o_ktown_01'},
{label = 'Salton Old Male', model = 'a_m_o_salton_01'},
{label = 'South Central Old Male 1', model = 'a_m_o_soucent_01'},
{label = 'South Central Old Male 2', model = 'a_m_o_soucent_02'},
{label = 'South Central Old Male 3', model = 'a_m_o_soucent_03'},
{label = 'Tramp Old Male', model = 'a_m_o_tramp_01'},
{label = 'Acult Male Young', model = 'a_m_y_acult_01'},
{label = 'Acult Male Young 2', model = 'a_m_y_acult_02'},
{label = 'Beach Young Male 1', model = 'a_m_y_beach_01'},
{label = 'Beach Young Male 2', model = 'a_m_y_beach_02'},
{label = 'Beach Young Male 3', model = 'a_m_y_beach_03'},
{label = 'Beach Vespucci Young Male 1', model = 'a_m_y_beachvesp_01'},
{label = 'Beach Vespucci Young Male 2', model = 'a_m_y_beachvesp_02'},
{label = 'Beverly Hills Young Male 1', model = 'a_m_y_bevhills_01'},
{label = 'Beverly Hills Young Male 2', model = 'a_m_y_bevhills_02'},
{label = 'Breakdance Young Male', model = 'a_m_y_breakdance_01'},
{label = 'Busboy Young Male', model = 'a_m_y_busicas_01'},
{label = 'Business Young Male 1', model = 'a_m_y_business_01'},
{label = 'Business Young Male 2', model = 'a_m_y_business_02'},
{label = 'Business Young Male 3', model = 'a_m_y_business_03'},
{label = 'Club Customer Young Male 1', model = 'a_m_y_clubcust_01'},
{label = 'Club Customer Young Male 2', model = 'a_m_y_clubcust_02'},
{label = 'Club Customer Young Male 3', model = 'a_m_y_clubcust_03'},
{label = 'Cyclist Young Male', model = 'a_m_y_cyclist_01'},
{label = 'DHill Young Male', model = 'a_m_y_dhill_01'},
{label = 'Downtown Young Male', model = 'a_m_y_downtown_01'},
{label = 'East SA Young Male 1', model = 'a_m_y_eastsa_01'},
{label = 'East SA Young Male 2', model = 'a_m_y_eastsa_02'},
{label = 'Epsilon Young Male 1', model = 'a_m_y_epsilon_01'},
{label = 'Epsilon Young Male 2', model = 'a_m_y_epsilon_02'},
{label = 'Gay Young Male 1', model = 'a_m_y_gay_01'},
{label = 'Gay Young Male 2', model = 'a_m_y_gay_02'},
{label = 'Gen Street Young Male 1', model = 'a_m_y_genstreet_01'},
{label = 'Gen Street Young Male 2', model = 'a_m_y_genstreet_02'},
{label = 'Golfer Young Male', model = 'a_m_y_golfer_01'},
{label = 'Hasidic Jew Young Male', model = 'a_m_y_hasjew_01'},
{label = 'Hiker Young Male', model = 'a_m_y_hiker_01'},
{label = 'Hippie Young Male', model = 'a_m_y_hippy_01'},
{label = 'Hipster Young Male 1', model = 'a_m_y_hipster_01'},
{label = 'Hipster Young Male 2', model = 'a_m_y_hipster_02'},
{label = 'Hipster Young Male 3', model = 'a_m_y_hipster_03'},
{label = 'Indian Young Male', model = 'a_m_y_indian_01'},
{label = 'Jetski Young Male', model = 'a_m_y_jetski_01'},
{label = 'Juggalo Young Male', model = 'a_m_y_juggalo_01'},
{label = 'Korean Young Male 1', model = 'a_m_y_ktown_01'},
{label = 'Korean Young Male 2', model = 'a_m_y_ktown_02'},
{label = 'Latino Young Male', model = 'a_m_y_latino_01'},
{label = 'Methhead Young Male', model = 'a_m_y_methhead_01'},
{label = 'Mexican Thug Young Male', model = 'a_m_y_mexthug_01'},
{label = 'Motox Young Male 1', model = 'a_m_y_motox_01'},
{label = 'Motox Young Male 2', model = 'a_m_y_motox_02'},
{label = 'Muscle Beach Young Male 1', model = 'a_m_y_musclbeac_01'},
{label = 'Muscle Beach Young Male 2', model = 'a_m_y_musclbeac_02'},
{label = 'Polynesian Young Male', model = 'a_m_y_polynesian_01'},
{label = 'Road Cyclist Young Male', model = 'a_m_y_roadcyc_01'},
{label = 'Runner Young Male 1', model = 'a_m_y_runner_01'},
{label = 'Runner Young Male 2', model = 'a_m_y_runner_02'},
{label = 'Salton Young Male', model = 'a_m_y_salton_01'},
{label = 'Skater Young Male 1', model = 'a_m_y_skater_01'},
{label = 'Skater Young Male 2', model = 'a_m_y_skater_02'},
{label = 'South Central Young Male 1', model = 'a_m_y_soucent_01'},
{label = 'South Central Young Male 2', model = 'a_m_y_soucent_02'},
{label = 'South Central Young Male 3', model = 'a_m_y_soucent_03'},
{label = 'South Central Young Male 4', model = 'a_m_y_soucent_04'},
{label = 'St. Blaise Young Male 1', model = 'a_m_y_stbla_01'},
{label = 'St. Blaise Young Male 2', model = 'a_m_y_stbla_02'},
{label = 'Street Latino Young Male', model = 'a_m_y_stlat_01'},
{label = 'Street White Young Male 1', model = 'a_m_y_stwhi_01'},
{label = 'Street White Young Male 2', model = 'a_m_y_stwhi_02'},
{label = 'Sunbather Young Male', model = 'a_m_y_sunbathe_01'},
{label = 'Surfer Young Male', model = 'a_m_y_surfer_01'},
{label = 'Vinewood Douche Young Male', model = 'a_m_y_vindouche_01'},
{label = 'Vinewood Young Male 1', model = 'a_m_y_vinewood_01'},
{label = 'Vinewood Young Male 2', model = 'a_m_y_vinewood_02'},
{label = 'Vinewood Young Male 3', model = 'a_m_y_vinewood_03'},
{label = 'Vinewood Young Male 4', model = 'a_m_y_vinewood_04'},
{label = 'Yoga Young Male', model = 'a_m_y_yoga_01'},
{label = 'Gen Casino Patron Young Male', model = 'a_m_y_gencaspat_01'},
{label = 'Smart Casino Patron Young Male', model = 'a_m_y_smartcaspat_01'}
}
function LoadModel(model)
if not IsModelInCdimage(model) then
TriggerEvent('chat:addMessage', {
color = {255, 0, 0},
multiline = true,
args = {"Error", "Model not found in game files"}
})
return false
end
RequestModel(model)
local timeout = 500
while not HasModelLoaded(model) and timeout > 0 do
Wait(10)
timeout = timeout - 1
end
if timeout <= 0 then
TriggerEvent('chat:addMessage', {
color = {255, 0, 0},
multiline = true,
args = {"Error", "Failed to load model in time"}
})
return false
end
return true
end
function GetModelNameFromHash(hash)
local modelName = "Unknown"
for _, pedInfo in ipairs(PedModels) do
if GetHashKey(pedInfo.model) == hash then
modelName = pedInfo.label
break
end
end
return modelName
end