-
Notifications
You must be signed in to change notification settings - Fork 18
/
cl_speed.lua
475 lines (471 loc) · 18.8 KB
/
cl_speed.lua
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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
local speedlimit = "~r~~h~You havent Done this street!"
local speedlimitshow = true
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local playerloc = GetEntityCoords(GetPlayerPed(-1))
local streethash = GetStreetNameAtCoord(playerloc.x, playerloc.y, playerloc.z)
street = GetStreetNameFromHashKey(streethash)
if IsPedInAnyVehicle(GetPlayerPed(-1)) then
if street == "Joshua Rd" then
speedlimit = 50
elseif street == "East Joshua Road" then
speedlimit = 50
elseif street == "Marina Dr" then
speedlimit = 35
elseif street == "Alhambra Dr" then
speedlimit = 35
elseif street == "Niland Ave" then
speedlimit = 35
elseif street == "Zancudo Ave" then
speedlimit = 35
elseif street == "Armadillo Ave" then
speedlimit = 35
elseif street == "Algonquin Blvd" then
speedlimit = 35
elseif street == "Mountain View Dr" then
speedlimit = 35
elseif street == "Cholla Springs Ave" then
speedlimit = 35
elseif street == "Panorama Dr" then
speedlimit = 40
elseif street == "Lesbos Ln" then
speedlimit = 35
elseif street == "Calafia Rd" then
speedlimit = 30
elseif street == "North Calafia Way" then
speedlimit = 30
elseif street == "Cassidy Trail" then
speedlimit = 25
elseif street == "Seaview Rd" then
speedlimit = 35
elseif street == "Grapeseed Main St" then
speedlimit = 35
elseif street == "Grapeseed Ave" then
speedlimit = 35
elseif street == "Joad Ln" then
speedlimit = 35
elseif street == "Union Rd" then
speedlimit = 40
elseif street == "O'Neil Way" then
speedlimit = 25
elseif street == "Senora Fwy" then
speedlimit = 65
elseif street == "Catfish View" then
speedlimit = 35
elseif street == "Great Ocean Hwy" then
speedlimit = 60
elseif street == "Paleto Blvd" then
speedlimit = 35
elseif street == "Duluoz Ave" then
speedlimit = 35
elseif street == "Procopio Dr" then
speedlimit = 35
elseif street == "Cascabel Ave" then
speedlimit = 30
elseif street == "Procopio Promenade" then
speedlimit = 25
elseif street == "Pyrite Ave" then
speedlimit = 30
elseif street == "Fort Zancudo Approach Rd" then
speedlimit = 25
elseif street == "Barbareno Rd" then
speedlimit = 30
elseif street == "Ineseno Road" then
speedlimit = 30
elseif street == "West Eclipse Blvd" then
speedlimit = 35
elseif street == "Playa Vista" then
speedlimit = 30
elseif street == "Bay City Ave" then
speedlimit = 30
elseif street == "Del Perro Fwy" then
speedlimit = 65
elseif street == "Equality Way" then
speedlimit = 30
elseif street == "Red Desert Ave" then
speedlimit = 30
elseif street == "Magellan Ave" then
speedlimit = 25
elseif street == "Sandcastle Way" then
speedlimit = 30
elseif street == "Vespucci Blvd" then
speedlimit = 40
elseif street == "Prosperity St" then
speedlimit = 30
elseif street == "San Andreas Ave" then
speedlimit = 40
elseif street == "North Rockford Dr" then
speedlimit = 35
elseif street == "South Rockford Dr" then
speedlimit = 35
elseif street == "Marathon Ave" then
speedlimit = 30
elseif street == "Boulevard Del Perro" then
speedlimit = 35
elseif street == "Cougar Ave" then
speedlimit = 30
elseif street == "Liberty St" then
speedlimit = 30
elseif street == "Bay City Incline" then
speedlimit = 40
elseif street == "Conquistador St" then
speedlimit = 25
elseif street == "Cortes St" then
speedlimit = 25
elseif street == "Vitus St" then
speedlimit = 25
elseif street == "Aguja St" then
speedlimit = 25
elseif street == "Goma St" then
speedlimit = 25
elseif street == "Melanoma St" then
speedlimit = 25
elseif street == "Palomino Ave" then
speedlimit = 35
elseif street == "Invention Ct" then
speedlimit = 25
elseif street == "Imagination Ct" then
speedlimit = 25
elseif street == "Rub St" then
speedlimit = 25
elseif street == "Tug St" then
speedlimit = 25
elseif street == "Ginger St" then
speedlimit = 30
elseif street == "Lindsay Circus" then
speedlimit = 30
elseif street == "Calais Ave" then
speedlimit = 35
elseif street == "Adam's Apple Blvd" then
speedlimit = 40
elseif street == "Alta St" then
speedlimit = 40
elseif street == "Integrity Way" then
speedlimit = 30
elseif street == "Swiss St" then
speedlimit = 30
elseif street == "Strawberry Ave" then
speedlimit = 40
elseif street == "Capital Blvd" then
speedlimit = 30
elseif street == "Crusade Rd" then
speedlimit = 30
elseif street == "Innocence Blvd" then
speedlimit = 40
elseif street == "Davis Ave" then
speedlimit = 40
elseif street == "Little Bighorn Ave" then
speedlimit = 35
elseif street == "Roy Lowenstein Blvd" then
speedlimit = 35
elseif street == "Jamestown St" then
speedlimit = 30
elseif street == "Carson Ave" then
speedlimit = 35
elseif street == "Grove St" then
speedlimit = 30
elseif street == "Brouge Ave" then
speedlimit = 30
elseif street == "Covenant Ave" then
speedlimit = 30
elseif street == "Dutch London St" then
speedlimit = 40
elseif street == "Signal St" then
speedlimit = 30
elseif street == "Elysian Fields Fwy" then
speedlimit = 50
elseif street == "Plaice Pl" then
speedlimit = 30
elseif street == "Chum St" then
speedlimit = 40
elseif street == "Chupacabra St" then
speedlimit = 30
elseif street == "Miriam Turner Overpass" then
speedlimit = 30
elseif street == "Autopia Pkwy" then
speedlimit = 35
elseif street == "Exceptionalists Way" then
speedlimit = 35
elseif street == "La Puerta Fwy" then
speedlimit = 60
elseif street == "New Empire Way" then
speedlimit = 30
elseif street == "Runway1" then
speedlimit = "--"
elseif street == "Greenwich Pkwy" then
speedlimit = 35
elseif street == "Kortz Dr" then
speedlimit = 30
elseif street == "Banham Canyon Dr" then
speedlimit = 40
elseif street == "Buen Vino Rd" then
speedlimit = 40
elseif street == "Route 68" then
speedlimit = 55
elseif street == "Zancudo Grande Valley" then
speedlimit = 40
elseif street == "Zancudo Barranca" then
speedlimit = 40
elseif street == "Galileo Rd" then
speedlimit = 40
elseif street == "Mt Vinewood Dr" then
speedlimit = 40
elseif street == "Marlowe Dr" then
speedlimit = 40
elseif street == "Milton Rd" then
speedlimit = 35
elseif street == "Kimble Hill Dr" then
speedlimit = 35
elseif street == "Normandy Dr" then
speedlimit = 35
elseif street == "Hillcrest Ave" then
speedlimit = 35
elseif street == "Hillcrest Ridge Access Rd" then
speedlimit = 35
elseif street == "North Sheldon Ave" then
speedlimit = 35
elseif street == "Lake Vinewood Dr" then
speedlimit = 35
elseif street == "Lake Vinewood Est" then
speedlimit = 35
elseif street == "Baytree Canyon Rd" then
speedlimit = 40
elseif street == "North Conker Ave" then
speedlimit = 35
elseif street == "Wild Oats Dr" then
speedlimit = 35
elseif street == "Whispymound Dr" then
speedlimit = 35
elseif street == "Didion Dr" then
speedlimit = 35
elseif street == "Cox Way" then
speedlimit = 35
elseif street == "Picture Perfect Drive" then
speedlimit = 35
elseif street == "South Mo Milton Dr" then
speedlimit = 35
elseif street == "Cockingend Dr" then
speedlimit = 35
elseif street == "Mad Wayne Thunder Dr" then
speedlimit = 35
elseif street == "Hangman Ave" then
speedlimit = 35
elseif street == "Dunstable Ln" then
speedlimit = 35
elseif street == "Dunstable Dr" then
speedlimit = 35
elseif street == "Greenwich Way" then
speedlimit = 35
elseif street == "Greenwich Pl" then
speedlimit = 35
elseif street == "Hardy Way" then
speedlimit = 35
elseif street == "Richman St" then
speedlimit = 35
elseif street == "Ace Jones Dr" then
speedlimit = 35
elseif street == "Los Santos Freeway" then
speedlimit = 65
elseif street == "Senora Rd" then
speedlimit = 40
elseif street == "Nowhere Rd" then
speedlimit = 25
elseif street == "Smoke Tree Rd" then
speedlimit = 35
elseif street == "Cholla Rd" then
speedlimit = 35
elseif street == "Cat-Claw Ave" then
speedlimit = 35
elseif street == "Senora Way" then
speedlimit = 40
elseif street == "Palomino Fwy" then
speedlimit = 60
elseif street == "Shank St" then
speedlimit = 25
elseif street == "Macdonald St" then
speedlimit = 35
elseif street == "Route 68 Approach" then
speedlimit = 55
elseif street == "Vinewood Park Dr" then
speedlimit = 35
elseif street == "Vinewood Blvd" then
speedlimit = 40
elseif street == "Mirror Park Blvd" then
speedlimit = 35
elseif street == "Glory Way" then
speedlimit = 35
elseif street == "Bridge St" then
speedlimit = 35
elseif street == "West Mirror Drive" then
speedlimit = 35
elseif street == "Nikola Ave" then
speedlimit = 35
elseif street == "East Mirror Dr" then
speedlimit = 35
elseif street == "Nikola Pl" then
speedlimit = 25
elseif street == "Mirror Pl" then
speedlimit = 35
elseif street == "El Rancho Blvd" then
speedlimit = 40
elseif street == "Olympic Fwy" then
speedlimit = 60
elseif street == "Fudge Ln" then
speedlimit = 25
elseif street == "Amarillo Vista" then
speedlimit = 25
elseif street == "Labor Pl" then
speedlimit = 35
elseif street == "El Burro Blvd" then
speedlimit = 35
elseif street == "Sustancia Rd" then
speedlimit = 45
elseif street == "South Shambles St" then
speedlimit = 30
elseif street == "Hanger Way" then
speedlimit = 30
elseif street == "Orchardville Ave" then
speedlimit = 30
elseif street == "Popular St" then
speedlimit = 40
elseif street == "Buccaneer Way" then
speedlimit = 45
elseif street == "Abattoir Ave" then
speedlimit = 35
elseif street == "Voodoo Place" then
speedlimit = 30
elseif street == "Mutiny Rd" then
speedlimit = 35
elseif street == "South Arsenal St" then
speedlimit = 35
elseif street == "Forum Dr" then
speedlimit = 35
elseif street == "Morningwood Blvd" then
speedlimit = 35
elseif street == "Dorset Dr" then
speedlimit = 40
elseif street == "Caesars Place" then
speedlimit = 25
elseif street == "Spanish Ave" then
speedlimit = 30
elseif street == "Portola Dr" then
speedlimit = 30
elseif street == "Edwood Way" then
speedlimit = 25
elseif street == "San Vitus Blvd" then
speedlimit = 40
elseif street == "Eclipse Blvd" then
speedlimit = 35
elseif street == "Gentry Lane" then
speedlimit = 30
elseif street == "Las Lagunas Blvd" then
speedlimit = 40
elseif street == "Power St" then
speedlimit = 40
elseif street == "Mt Haan Rd" then
speedlimit = 40
elseif street == "Elgin Ave" then
speedlimit = 40
elseif street == "Hawick Ave" then
speedlimit = 35
elseif street == "Meteor St" then
speedlimit = 30
elseif street == "Alta Pl" then
speedlimit = 30
elseif street == "Occupation Ave" then
speedlimit = 35
elseif street == "Carcer Way" then
speedlimit = 40
elseif street == "Eastbourne Way" then
speedlimit = 30
elseif street == "Rockford Dr" then
speedlimit = 35
elseif street == "Abe Milton Pkwy" then
speedlimit = 35
elseif street == "Laguna Pl" then
speedlimit = 30
elseif street == "Sinners Passage" then
speedlimit = 30
elseif street == "Atlee St" then
speedlimit = 30
elseif street == "Sinner St" then
speedlimit = 30
elseif street == "Supply St" then
speedlimit = 30
elseif street == "Amarillo Way" then
speedlimit = 35
elseif street == "Tower Way" then
speedlimit = 35
elseif street == "Decker St" then
speedlimit = 35
elseif street == "Tackle St" then
speedlimit = 25
elseif street == "Low Power St" then
speedlimit = 35
elseif street == "Clinton Ave" then
speedlimit = 35
elseif street == "Fenwell Pl" then
speedlimit = 35
elseif street == "Utopia Gardens" then
speedlimit = 25
elseif street == "Cavalry Blvd" then
speedlimit = 35
elseif street == "South Boulevard Del Perro" then
speedlimit = 35
elseif street == "Americano Way" then
speedlimit = 25
elseif street == "Sam Austin Dr" then
speedlimit = 25
elseif street == "East Galileo Ave" then
speedlimit = 35
elseif street == "Galileo Park" then
speedlimit = 35
elseif street == "West Galileo Ave" then
speedlimit = 35
elseif street == "Tongva Dr" then
speedlimit = 40
elseif street == "Zancudo Rd" then
speedlimit = 35
elseif street == "Movie Star Way" then
speedlimit = 35
elseif street == "Heritage Way" then
speedlimit = 35
elseif street == "Perth St" then
speedlimit = 25
elseif street == "Chianski Passage" then
speedlimit = 30
elseif street == "Lolita Ave" then
speedlimit = 35
elseif street == "Meringue Ln" then
speedlimit = 35
elseif street == "Strangeways Dr" then
speedlimit = 30
else
speedlimit = "~r~~h~Contact Development!"
end
if IsControlJustPressed(0, 29) then
if speedlimitshow == true then
speedlimitshow = false
else
speedlimitshow = true
end
end
if speedlimitshow == true then
DrawTxt(1.160, 0.500, 1.0,1.0,0.55,"~p~Speedlimit: ~w~"..speedlimit.."~p~ mph", 255,255,255,255)
end
end
end
end)
function DrawTxt(x,y ,width,height,scale, text, r,g,b,a)
SetTextFont(6)
SetTextProportional(0)
SetTextScale(scale, scale)
SetTextColour(r, g, b, a)
SetTextDropShadow(0, 0, 0, 0,255)
SetTextEdge(1, 0, 0, 0, 255)
SetTextOutline()
SetTextEntry("STRING")
AddTextComponentString(text)
DrawText(x - width/2, y - height/2 + 0.005)
end