-
Notifications
You must be signed in to change notification settings - Fork 38
/
skidmenu.lua
4980 lines (4443 loc) · 194 KB
/
skidmenu.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
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
function BeginTextCommandDisplayText(text)return Citizen.InvokeNative(0x25FBB336DF1804CB, text) end function AddTextComponentSubstringPlayerName(text)return Citizen.InvokeNative(0x6C188BE134E074AA, text)end function EndTextCommandDisplayText(x, y)return Citizen.InvokeNative(0xCD015E5BB0D96A57, x, y)end WarMenu = {} WarMenu.debug = false local menus = {} local keys = {up = 172, down = 173, left = 174, right = 175, select = 191, back = 202} local optionCount = 0 local currentKey = nil local currentMenu = nil local titleHeight = 0.11 local titleXOffset = 0.5 local titleSpacing = 2 local titleYOffset = 0.03 local titleScale = 1.0 local buttonHeight = 0.038 local buttonFont = 0 local buttonScale = 0.365 local buttonTextXOffset = 0.005 local buttonTextYOffset = 0.005 local function debugPrint(text) if WarMenu.debug then Citizen.Trace('[WarMenu] ' .. tostring(text)) end end local function setMenuProperty(id, property, value) if id and menus[id] then menus[id][property] = value debugPrint(id .. ' menu property changed: { ' .. tostring(property) .. ', ' .. tostring(value) .. ' }') end end local function isMenuVisible(id) if id and menus[id] then return menus[id].visible else return false end end local function setMenuVisible(id, visible, holdCurrent) if id and menus[id] then setMenuProperty(id, 'visible', visible) if not holdCurrent and menus[id] then setMenuProperty(id, 'currentOption', 1) end if visible then if id ~= currentMenu and isMenuVisible(currentMenu) then setMenuVisible(currentMenu, false) end currentMenu = id end end end local function drawText(text, x, y, font, color, scale, center, shadow, alignRight)SetTextColour(color.r, color.g, color.b, color.a)SetTextFont(font)SetTextScale(scale, scale) if shadow then SetTextDropShadow(2, 2, 0, 0, 0) end if menus[currentMenu] then if center then SetTextCentre(center) elseif alignRight then SetTextWrap(menus[currentMenu].x, menus[currentMenu].x + menus[currentMenu].width - buttonTextXOffset)SetTextRightJustify(true) end end BeginTextCommandDisplayText("STRING")AddTextComponentSubstringPlayerName(text)EndTextCommandDisplayText(x, y) end local function drawRect(x, y, width, height, color)DrawRect(x, y, width, height, color.r, color.g, color.b, color.a) end local function drawTitle() if menus[currentMenu] then local x = menus[currentMenu].x + menus[currentMenu].width / 2 local xText = menus[currentMenu].x + menus[currentMenu].width * titleXOffset local y = menus[currentMenu].y + titleHeight * 1 / titleSpacing if menus[currentMenu].titleBackgroundSprite then DrawSprite(menus[currentMenu].titleBackgroundSprite.dict, menus[currentMenu].titleBackgroundSprite.name, x, y, menus[currentMenu].width, titleHeight, 0., 255, 255, 255, 255) else drawRect(x, y, menus[currentMenu].width, titleHeight, menus[currentMenu].titleBackgroundColor) end drawText(menus[currentMenu].title, xText, y - titleHeight / 2 + titleYOffset, menus[currentMenu].titleFont, menus[currentMenu].titleColor, titleScale, true) end end local function drawSubTitle() if menus[currentMenu] then local x = menus[currentMenu].x + menus[currentMenu].width / 2 local y = menus[currentMenu].y + titleHeight + buttonHeight / 2 local subTitleColor = {r = menus[currentMenu].titleBackgroundColor.r, g = menus[currentMenu].titleBackgroundColor.g, b = menus[currentMenu].titleBackgroundColor.b, a = 255}drawRect(x, y, menus[currentMenu].width, buttonHeight, menus[currentMenu].subTitleBackgroundColor)drawText(menus[currentMenu].subTitle, menus[currentMenu].x + buttonTextXOffset, y - buttonHeight / 2 + buttonTextYOffset, buttonFont, subTitleColor, buttonScale, false) if optionCount > menus[currentMenu].maxOptionCount then drawText(tostring(menus[currentMenu].currentOption) .. ' / ' .. tostring(optionCount), menus[currentMenu].x + menus[currentMenu].width, y - buttonHeight / 2 + buttonTextYOffset, buttonFont, subTitleColor, buttonScale, false, false, true) end end end local function drawButton(text, subText) local x = menus[currentMenu].x + menus[currentMenu].width / 2 local multiplier = nil if menus[currentMenu].currentOption <= menus[currentMenu].maxOptionCount and optionCount <= menus[currentMenu].maxOptionCount then multiplier = optionCount elseif optionCount > menus[currentMenu].currentOption - menus[currentMenu].maxOptionCount and optionCount <= menus[currentMenu].currentOption then multiplier = optionCount - (menus[currentMenu].currentOption - menus[currentMenu].maxOptionCount) end if multiplier then local y = menus[currentMenu].y + titleHeight + buttonHeight + (buttonHeight * multiplier) - buttonHeight / 2 local backgroundColor = nil local textColor = nil local subTextColor = nil local shadow = false if menus[currentMenu].currentOption == optionCount then backgroundColor = menus[currentMenu].menuFocusBackgroundColor textColor = menus[currentMenu].menuFocusTextColor subTextColor = menus[currentMenu].menuFocusTextColor else backgroundColor = menus[currentMenu].menuBackgroundColor textColor = menus[currentMenu].menuTextColor subTextColor = menus[currentMenu].menuSubTextColor shadow = true end drawRect(x, y, menus[currentMenu].width, buttonHeight, backgroundColor)drawText(text, menus[currentMenu].x + buttonTextXOffset, y - (buttonHeight / 2) + buttonTextYOffset, buttonFont, textColor, buttonScale, false, shadow) if subText then drawText(subText, menus[currentMenu].x + buttonTextXOffset, y - buttonHeight / 2 + buttonTextYOffset, buttonFont, subTextColor, buttonScale, false, shadow, true) end end end function WarMenu.CreateMenu(id, title)menus[id] = {}menus[id].title = title menus[id].subTitle = 'INTERACTION MENU' menus[id].visible = false menus[id].previousMenu = nil menus[id].aboutToBeClosed = false menus[id].x = 0.0175 menus[id].y = 0.025 menus[id].width = 0.23 menus[id].currentOption = 1 menus[id].maxOptionCount = 10 menus[id].titleFont = 1 menus[id].titleColor = {r = 0, g = 0, b = 0, a = 255}menus[id].titleBackgroundColor = {r = 245, g = 127, b = 23, a = 255}menus[id].titleBackgroundSprite = nil menus[id].menuTextColor = {r = 255, g = 255, b = 255, a = 255}menus[id].menuSubTextColor = {r = 189, g = 189, b = 189, a = 255}menus[id].menuFocusTextColor = {r = 0, g = 0, b = 0, a = 255}menus[id].menuFocusBackgroundColor = {r = 245, g = 245, b = 245, a = 255}menus[id].menuBackgroundColor = {r = 0, g = 0, b = 0, a = 160}menus[id].subTitleBackgroundColor = {r = menus[id].menuBackgroundColor.r, g = menus[id].menuBackgroundColor.g, b = menus[id].menuBackgroundColor.b, a = 255}menus[id].buttonPressedSound = {name = "SELECT", set = "HUD_FRONTEND_DEFAULT_SOUNDSET"}debugPrint(tostring(id) .. ' menu created') end function WarMenu.CreateSubMenu(id, parent, subTitle) if menus[parent] then WarMenu.CreateMenu(id, menus[parent].title) if subTitle then setMenuProperty(id, 'subTitle', string.upper(subTitle)) else setMenuProperty(id, 'subTitle', string.upper(menus[parent].subTitle)) end setMenuProperty(id, 'previousMenu', parent)setMenuProperty(id, 'x', menus[parent].x)setMenuProperty(id, 'y', menus[parent].y)setMenuProperty(id, 'maxOptionCount', menus[parent].maxOptionCount)setMenuProperty(id, 'titleFont', menus[parent].titleFont)setMenuProperty(id, 'titleColor', menus[parent].titleColor)setMenuProperty(id, 'titleBackgroundColor', menus[parent].titleBackgroundColor)setMenuProperty(id, 'titleBackgroundSprite', menus[parent].titleBackgroundSprite)setMenuProperty(id, 'menuTextColor', menus[parent].menuTextColor)setMenuProperty(id, 'menuSubTextColor', menus[parent].menuSubTextColor)setMenuProperty(id, 'menuFocusTextColor', menus[parent].menuFocusTextColor)setMenuProperty(id, 'menuFocusBackgroundColor', menus[parent].menuFocusBackgroundColor)setMenuProperty(id, 'menuBackgroundColor', menus[parent].menuBackgroundColor)setMenuProperty(id, 'subTitleBackgroundColor', menus[parent].subTitleBackgroundColor) else debugPrint('Failed to create ' .. tostring(id) .. ' submenu: ' .. tostring(parent) .. ' parent menu doesn\'t exist') end end function WarMenu.CurrentMenu() return currentMenu end function WarMenu.OpenMenu(id) if id and menus[id] then PlaySoundFrontend(-1, "SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET", true)setMenuVisible(id, true)debugPrint(tostring(id) .. ' menu opened') else debugPrint('Failed to open ' .. tostring(id) .. ' menu: it doesn\'t exist') end end function WarMenu.IsMenuOpened(id) return isMenuVisible(id) end function WarMenu.IsAnyMenuOpened() for id, _ in pairs(menus) do if isMenuVisible(id) then return true end end return false end function WarMenu.IsMenuAboutToBeClosed() if menus[currentMenu] then return menus[currentMenu].aboutToBeClosed else return false end end function WarMenu.CloseMenu() if menus[currentMenu] then if menus[currentMenu].aboutToBeClosed then menus[currentMenu].aboutToBeClosed = false setMenuVisible(currentMenu, false)debugPrint(tostring(currentMenu) .. ' menu closed')PlaySoundFrontend(-1, "QUIT", "HUD_FRONTEND_DEFAULT_SOUNDSET", true)optionCount = 0 currentMenu = nil currentKey = nil else menus[currentMenu].aboutToBeClosed = true debugPrint(tostring(currentMenu) .. ' menu about to be closed') end end end function WarMenu.Button(text, subText) local buttonText = text if subText then buttonText = '{ ' .. tostring(buttonText) .. ', ' .. tostring(subText) .. ' }' end if menus[currentMenu] then optionCount = optionCount + 1 local isCurrent = menus[currentMenu].currentOption == optionCount drawButton(text, subText) if isCurrent then if currentKey == keys.select then PlaySoundFrontend(-1, menus[currentMenu].buttonPressedSound.name, menus[currentMenu].buttonPressedSound.set, true)debugPrint(buttonText .. ' button pressed') return true elseif currentKey == keys.left or currentKey == keys.right then PlaySoundFrontend(-1, "NAV_UP_DOWN", "HUD_FRONTEND_DEFAULT_SOUNDSET", true) end end return false else debugPrint('Failed to create ' .. buttonText .. ' button: ' .. tostring(currentMenu) .. ' menu doesn\'t exist') return false end end function WarMenu.MenuButton(text, id) if menus[id] then if WarMenu.Button(text .. themecolor .. " " .. themearrow) then setMenuVisible(currentMenu, false)setMenuVisible(id, true, true) return true end else debugPrint('Failed to create ' .. tostring(text) .. ' menu button: ' .. tostring(id) .. ' submenu doesn\'t exist') end return false end function WarMenu.CheckBox(text, checked, offtext, ontext, callback) if not offtext then offtext = "Off" end if not ontext then ontext = "On" end if WarMenu.Button(text, checked and ontext or offtext) then checked = not checked debugPrint(tostring(text) .. ' checkbox changed to ' .. tostring(checked)) if callback then callback(checked) end return true end return false end function WarMenu.ComboBox(text, items, currentIndex, selectedIndex, callback) local itemsCount = #items local selectedItem = items[currentIndex] local isCurrent = menus[currentMenu].currentOption == (optionCount + 1) if itemsCount > 1 and isCurrent then selectedItem = tostring(selectedItem) end if WarMenu.Button(text, selectedItem) then selectedIndex = currentIndex callback(currentIndex, selectedIndex) return true elseif isCurrent then if currentKey == keys.left then if currentIndex > 1 then currentIndex = currentIndex - 1 else currentIndex = itemsCount end elseif currentKey == keys.right then if currentIndex < itemsCount then currentIndex = currentIndex + 1 else currentIndex = 1 end end else currentIndex = selectedIndex end callback(currentIndex, selectedIndex) return false end function WarMenu.Display() if isMenuVisible(currentMenu) then if menus[currentMenu].aboutToBeClosed then WarMenu.CloseMenu() else ClearAllHelpMessages()drawTitle()drawSubTitle()currentKey = nil if IsDisabledControlJustReleased(1, keys.down) then PlaySoundFrontend(-1, "NAV_UP_DOWN", "HUD_FRONTEND_DEFAULT_SOUNDSET", true) if menus[currentMenu].currentOption < optionCount then menus[currentMenu].currentOption = menus[currentMenu].currentOption + 1 else menus[currentMenu].currentOption = 1 end elseif IsDisabledControlJustReleased(1, keys.up) then PlaySoundFrontend(-1, "NAV_UP_DOWN", "HUD_FRONTEND_DEFAULT_SOUNDSET", true) if menus[currentMenu].currentOption > 1 then menus[currentMenu].currentOption = menus[currentMenu].currentOption - 1 else menus[currentMenu].currentOption = optionCount end elseif IsDisabledControlJustReleased(1, keys.left) then currentKey = keys.left elseif IsDisabledControlJustReleased(1, keys.right) then currentKey = keys.right elseif IsDisabledControlJustReleased(1, keys.select) then currentKey = keys.select elseif IsDisabledControlJustReleased(1, keys.back) then if menus[menus[currentMenu].previousMenu] then PlaySoundFrontend(-1, "BACK", "HUD_FRONTEND_DEFAULT_SOUNDSET", true)setMenuVisible(menus[currentMenu].previousMenu, true) else WarMenu.CloseMenu() end end optionCount = 0 end end end function WarMenu.SetMenuWidth(id, width)setMenuProperty(id, 'width', width) end function WarMenu.SetMenuX(id, x)setMenuProperty(id, 'x', x) end function WarMenu.SetMenuY(id, y)setMenuProperty(id, 'y', y) end function WarMenu.SetMenuMaxOptionCountOnScreen(id, count)setMenuProperty(id, 'maxOptionCount', count) end function WarMenu.SetTitle(id, title)setMenuProperty(id, 'title', title) end function WarMenu.SetTitleColor(id, r, g, b, a)setMenuProperty(id, 'titleColor', {['r'] = r, ['g'] = g, ['b'] = b, ['a'] = a or menus[id].titleColor.a}) end function WarMenu.SetTitleBackgroundColor(id, r, g, b, a)setMenuProperty(id, 'titleBackgroundColor', {['r'] = r, ['g'] = g, ['b'] = b, ['a'] = a or menus[id].titleBackgroundColor.a}) end function WarMenu.SetTitleBackgroundSprite(id, textureDict, textureName)RequestStreamedTextureDict(textureDict)setMenuProperty(id, 'titleBackgroundSprite', {dict = textureDict, name = textureName}) end function WarMenu.SetSubTitle(id, text)setMenuProperty(id, 'subTitle', string.upper(text)) end function WarMenu.SetMenuBackgroundColor(id, r, g, b, a)setMenuProperty(id, 'menuBackgroundColor', {['r'] = r, ['g'] = g, ['b'] = b, ['a'] = a or menus[id].menuBackgroundColor.a}) end function WarMenu.SetMenuTextColor(id, r, g, b, a)setMenuProperty(id, 'menuTextColor', {['r'] = r, ['g'] = g, ['b'] = b, ['a'] = a or menus[id].menuTextColor.a}) end function WarMenu.SetMenuSubTextColor(id, r, g, b, a)setMenuProperty(id, 'menuSubTextColor', {['r'] = r, ['g'] = g, ['b'] = b, ['a'] = a or menus[id].menuSubTextColor.a}) end function WarMenu.SetMenuFocusColor(id, r, g, b, a)setMenuProperty(id, 'menuFocusColor', {['r'] = r, ['g'] = g, ['b'] = b, ['a'] = a or menus[id].menuFocusColor.a}) end function WarMenu.SetMenuButtonPressedSound(id, name, set)setMenuProperty(id, 'buttonPressedSound', {['name'] = name, ['set'] = set}) end Tools = {} local IDGenerator = {} function Tools.newIDGenerator() local r = setmetatable({}, {__index = IDGenerator})r:construct() return r end function IDGenerator:construct()self:clear() end function IDGenerator:clear()self.max = 0 self.ids = {} end function IDGenerator:gen() if #self.ids > 0 then return table.remove(self.ids) else local r = self.max self.max = self.max + 1 return r end end function IDGenerator:free(id)table.insert(self.ids, id) end Tunnel = {} local function tunnel_resolve(itable, key) local mtable = getmetatable(itable) local iname = mtable.name local ids = mtable.tunnel_ids local callbacks = mtable.tunnel_callbacks local identifier = mtable.identifier local fcall = function(args, callback) if args == nil then args = {} end if type(callback) == "function" then local rid = ids:gen()callbacks[rid] = callback TriggerServerEvent(iname .. ":tunnel_req", key, args, identifier, rid) else TriggerServerEvent(iname .. ":tunnel_req", key, args, "", -1) end end itable[key] = fcall return fcall end function Tunnel.bindInterface(name, interface)RegisterNetEvent(name .. ":tunnel_req")AddEventHandler(name .. ":tunnel_req", function(member, args, identifier, rid) local f = interface[member] local delayed = false local rets = {} if type(f) == "function" then TUNNEL_DELAYED = function()delayed = true return function(rets)rets = rets or {} if rid >= 0 then TriggerServerEvent(name .. ":" .. identifier .. ":tunnel_res", rid, rets) end end end rets = {f(table.unpack(args))} end if not delayed and rid >= 0 then TriggerServerEvent(name .. ":" .. identifier .. ":tunnel_res", rid, rets) end end) end function Tunnel.getInterface(name, identifier) local ids = Tools.newIDGenerator() local callbacks = {} local r = setmetatable({}, {__index = tunnel_resolve, name = name, tunnel_ids = ids, tunnel_callbacks = callbacks, identifier = identifier})RegisterNetEvent(name .. ":" .. identifier .. ":tunnel_res")AddEventHandler(name .. ":" .. identifier .. ":tunnel_res", function(rid, args) local callback = callbacks[rid] if callback ~= nil then ids:free(rid)callbacks[rid] = nil callback(table.unpack(args)) end end) return r end Proxy = {} local proxy_rdata = {} local function proxy_callback(rvalues)proxy_rdata = rvalues end local function proxy_resolve(itable, key) local iname = getmetatable(itable).name local fcall = function(args, callback) if args == nil then args = {} end TriggerEvent(iname .. ":proxy", key, args, proxy_callback) return table.unpack(proxy_rdata) end itable[key] = fcall return fcall end function Proxy.addInterface(name, itable)AddEventHandler(name .. ":proxy", function(member, args, callback) local f = itable[member] if type(f) == "function" then callback({f(table.unpack(args))}) else end end) end function Proxy.getInterface(name) local r = setmetatable({}, {__index = proxy_resolve, name = name}) return r end
--[[
WarMenu by Warxander
https://github.com/warxander
vRP Tunnel and Proxy libraries by ImagicTheCat
https://github.com/ImagicTheCat/vRP/tree/master/vrp
Anyone is free to use this menu and modify it as they please. All I ask in return is that
you do not try to monetize this release - I made this because I was tired of seeing
people trying to sell the same old reused code and charging ridiculous amounts for it.
/\ _____ ______ _____ _____ _ ______ _____ ______ /\
|/\| | __ \| ____| /\ | __ \ | __ \| | | ____| /\ / ____| ____| |/\|
| |__) | |__ / \ | | | | | |__) | | | |__ / \ | (___ | |__
| _ /| __| / /\ \ | | | | | ___/| | | __| / /\ \ \___ \| __|
| | \ \| |____ / ____ \| |__| | | | | |____| |____ / ____ \ ____) | |____
|_| \_\______/_/ \_\_____/ |_| |______|______/_/ \_\_____/|______|
]]
-- CONFIG
--[[
If you make an edit and would like to add your name, feel free to do so.
Please leave the original developers somewhere in the credits.
]]
developers = {
"tommyakshot - Joeyarrabi#7440", -- Main Developer
"Kirtle - Kirtle#0498", -- Secondary Developer
"Erwin Rommel - Erwin Rommel#4860" -- Tertiary Developer and GitHub Maintenance
}
-- Keybindings
-- Supported keys are shown below (line 1316)
-- Find new ones at https://docs.fivem.net/game-references/controls/
menuKeybind = "DELETE" -- Key to open the menu.
noclipKeybind = "F3" -- Key to toggle Noclip
fixcarKeybind = "F1" -- Key to fix car
healplayerKeybind = "F2" -- Key to heal player
-- End Keybindings
menuName = "SkidMenu" -- The name of the menu
version = "1.0" -- Keep it simple
theme = "infamous" -- Feel free to make your own
themes = {"infamous", "basic", "dark", "skid"}-- Add themes here if you want them to be in the theme selector
mpMessage = false -- Whether or not to use the big mp message
startMessage = "∑ ~b~Welcome, " .. GetPlayerName(PlayerId()) .. "." -- The message that is shown when the menu is opened
subMessage = "~w~Press ~b~" .. menuKeybind .. "~w~ to open the menu." -- subtitle of opening message
motd = "∑ Press ~b~" .. noclipKeybind .. "~w~ to toggle noclip!" -- motd
-- Add any new menus to this list (for theme changer/textures)
menulist = {
-- MAIN SUBMENUS
'skid',
'player',
'self',
'weapon',
'vehicle',
'world',
'misc',
'teleport',
'lua',
-- PLAYER SUBMENUS
'allplayer',
'playeroptions',
-- SELF SUBMENUS
'appearance',
'modifyskintextures',
'modifyhead',
'modifiers',
-- WEAPON SUBMENUS
'weaponspawner',
-- WEAPON SPAWNER SUBMENUS
'melee',
'pistol',
'shotgun',
'smg',
'assault',
'sniper',
'thrown',
'heavy',
-- VEHICLE SUBMENUS
'vehiclespawner',
'vehiclemods',
'vehiclemenu',
'vehiclecolors',
'vehiclecolors_primary',
'vehiclecolors_secondary',
'primary_classic',
'primary_matte',
'primary_metal',
'secondary_classic',
'secondary_matte',
'secondary_metal',
'vehicletuning',
-- VEHICLE SPAWNER SUBMENUS
'compacts',
'sedans',
'suvs',
'coupes',
'muscle',
'sportsclassics',
'sports',
'super',
'motorcycles',
'offroad',
'industrial',
'utility',
'vans',
'cycles',
'boats',
'helicopters',
'planes',
'service',
'commercial',
-- WORLD SUBMENUS
'objectspawner',
'objectlist',
'weather',
'time',
-- MISC SUBMENUS
'esp',
'keybindings',
'webradio',
'credits',
-- TELEPORT SUBMENUS
'saveload',
'pois',
-- LUA SUBMENUS
'esx',
'vrp',
'other'
}
-- END CONFIG
-- Modify Skin Textures
faceItemsList = {}
faceTexturesList = {}
hairItemsList = {}
hairTextureList = {}
maskItemsList = {}
hatItemsList = {}
hatTexturesList = {}
-- Noclip Speed Options
NoclipSpeedOps = {1, 5, 10, 20, 30}
-- Default Noclip Speed
NoclipSpeed = 1
oldSpeed = nil
-- Forcefield Radius Options
ForcefieldRadiusOps = {5.0, 10.0, 15.0, 20.0, 50.0}
-- Default Forcefield Radius
ForcefieldRadius = 5.0
--Fast Run/Swim Options
FastCB = {1.0, 1.09, 1.19, 1.29, 1.39, 1.49}
FastCBWords = {"+0%", "+20%", "+40%", "+60%", "+80%", "+100%"}
-- Default
FastRunMultiplier = 1.0
FastSwimMultiplier = 1.0
-- Object Rotation Options
RotationOps = {0, 45, 90, 135, 180}
-- Default Rotation
ObjRotation = 90
-- Gravity options
GravityOps = {0.0, 5.0, 9.8, 50.0, 100.0, 200.0, 500.0, 1000.0, 9999.9}
GravityOpsWords = {"0", "5", "Default", "50", "100", "200", "500", "1000", "9999"}
-- Default
GravAmount = 9.8
-- Speed mod options
SpeedModOps = {1.0, 1.5, 2.0, 3.0, 5.0, 10.0, 20.0, 50.0, 100.0, 500.0, 1000.0}
SpeedModAmt = 1.0
-- ESP Distance Options
ESPDistanceOps = {50.0, 100.0, 500.0, 1000.0, 2000.0, 5000.0}
EspDistance = 500.0
-- ESP Refresh Options
ESPRefreshOps = {"0ms", "100ms", "250ms", "500ms", "1s", "2s", "5s"}
ESPRefreshTime = 0
-- Aimbot Bone Options
AimbotBoneOps = {"Head", "Chest", "Left Arm", "Right Arm", "Left Leg", "Right Leg", "Dick"}
AimbotBone = "SKEL_HEAD"
-- Clothing Slots
ClothingSlots = {1, 2, 3, 4, 5}
-- Ped Attack Types
PedAttackOps = {"All Weapons", "Melee Weapons", "Pistols", "Heavy Weapons"}
--Default
PedAttackType = 1
-- Radios
RadiosList = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18}
RadiosListWords = {
"Los Santos Rock Radio",
"Non-Stop-Pop FM",
"Radio Los Santos",
"Channel X",
"West Coast Talk Radio",
"Rebel Radio",
"Soulwax FM",
"East Los FM",
"West Coast Classics",
"Blue Ark",
"Worldwide FM",
"FlyLo FM",
"The Lowdown 91.1",
"The Lab",
"Radio Mirror Park",
"Space 103.2",
"Vinewood Boulevard Radio",
"Blonded Los Santos 97.8 FM",
"Blaine County Radio",
-- Los Santos Underground Radio (Index doesn't work) |19| https://pastebin.com/Kj9t38KF
}
-- Weathers
WeathersList = {
"CLEAR",
"EXTRASUNNY",
"CLOUDS",
"OVERCAST",
"RAIN",
"CLEARING",
"THUNDER",
"SMOG",
"FOGGY",
"XMAS",
"SNOWLIGHT",
"BLIZZARD"
}
-- Objects to spawn
-- https://cdn.rage.mp/public/odb/index.html
objs_tospawn = {
"stt_prop_stunt_track_start",
"prop_container_01a",
"prop_contnr_pile_01a",
"ce_xr_ctr2",
"stt_prop_ramp_jump_xxl",
"hei_prop_carrier_jet",
"prop_parking_hut_2",
"csx_seabed_rock3_",
"db_apart_03_",
"db_apart_09_",
"stt_prop_stunt_tube_l",
"stt_prop_stunt_track_dwuturn",
"xs_prop_hamburgher_wl",
"sr_prop_spec_tube_xxs_01a"
}
-- WEAPONS LISTS
local allweapons = {
"WEAPON_UNARMED",
--Melee
"WEAPON_KNIFE",
"WEAPON_KNUCKLE",
"WEAPON_NIGHTSTICK",
"WEAPON_HAMMER",
"WEAPON_BAT",
"WEAPON_GOLFCLUB",
"WEAPON_CROWBAR",
"WEAPON_BOTTLE",
"WEAPON_DAGGER",
"WEAPON_HATCHET",
"WEAPON_MACHETE",
"WEAPON_FLASHLIGHT",
"WEAPON_SWITCHBLADE",
"WEAPON_POOLCUE",
"WEAPON_PIPEWRENCH",
--Thrown
"WEAPON_GRENADE",
"WEAPON_STICKYBOMB",
"WEAPON_PROXMINE",
"WEAPON_BZGAS",
"WEAPON_SMOKEGRENADE",
"WEAPON_MOLOTOV",
"WEAPON_FIREEXTINGUISHER",
"WEAPON_PETROLCAN",
"WEAPON_SNOWBALL",
"WEAPON_FLARE",
"WEAPON_BALL",
--Pistols
"WEAPON_PISTOL",
"WEAPON_PISTOL_MK2",
"WEAPON_COMBATPISTOL",
"WEAPON_APPISTOL",
"WEAPON_REVOLVER",
"WEAPON_REVOLVER_MK2",
"WEAPON_DOUBLEACTION",
"WEAPON_PISTOL50",
"WEAPON_SNSPISTOL",
"WEAPON_SNSPISTOL_MK2",
"WEAPON_HEAVYPISTOL",
"WEAPON_VINTAGEPISTOL",
"WEAPON_STUNGUN",
"WEAPON_FLAREGUN",
"WEAPON_MARKSMANPISTOL",
"WEAPON_RAYPISTOL",
-- SMGs / MGs
"WEAPON_MICROSMG",
"WEAPON_MINISMG",
"WEAPON_SMG",
"WEAPON_SMG_MK2",
"WEAPON_ASSAULTSMG",
"WEAPON_COMBATPDW",
"WEAPON_GUSENBERG",
"WEAPON_MACHINEPISTOL",
"WEAPON_MG",
"WEAPON_COMBATMG",
"WEAPON_COMBATMG_MK2",
"WEAPON_RAYCARBINE",
-- Assault Rifles
"WEAPON_ASSAULTRIFLE",
"WEAPON_ASSAULTRIFLE_MK2",
"WEAPON_CARBINERIFLE",
"WEAPON_CARBINERIFLE_MK2",
"WEAPON_ADVANCEDRIFLE",
"WEAPON_SPECIALCARBINE",
"WEAPON_SPECIALCARBINE_MK2",
"WEAPON_BULLPUPRIFLE",
"WEAPON_BULLPUPRIFLE_MK2",
"WEAPON_COMPACTRIFLE",
--Shotguns
"WEAPON_PUMPSHOTGUN",
"WEAPON_PUMPSHOTGUN_MK2",
"WEAPON_SWEEPERSHOTGUN",
"WEAPON_SAWNOFFSHOTGUN",
"WEAPON_BULLPUPSHOTGUN",
"WEAPON_ASSAULTSHOTGUN",
"WEAPON_MUSKET",
"WEAPON_HEAVYSHOTGUN",
"WEAPON_DBSHOTGUN",
--Sniper Rifles
"WEAPON_SNIPERRIFLE",
"WEAPON_HEAVYSNIPER",
"WEAPON_HEAVYSNIPER_MK2",
"WEAPON_MARKSMANRIFLE",
"WEAPON_MARKSMANRIFLE_MK2",
--Heavy Weapons
"WEAPON_GRENADELAUNCHER",
"WEAPON_GRENADELAUNCHER_SMOKE",
"WEAPON_RPG",
"WEAPON_MINIGUN",
"WEAPON_FIREWORK",
"WEAPON_RAILGUN",
"WEAPON_HOMINGLAUNCHER",
"WEAPON_COMPACTLAUNCHER",
"WEAPON_RAYMINIGUN",
}
local meleeweapons = {
{"WEAPON_KNIFE", "Knife"},
{"WEAPON_KNUCKLE", "Brass Knuckles"},
{"WEAPON_NIGHTSTICK", "Nightstick"},
{"WEAPON_HAMMER", "Hammer"},
{"WEAPON_BAT", "Baseball Bat"},
{"WEAPON_GOLFCLUB", "Golf Club"},
{"WEAPON_CROWBAR", "Crowbar"},
{"WEAPON_BOTTLE", "Bottle"},
{"WEAPON_DAGGER", "Dagger"},
{"WEAPON_HATCHET", "Hatchet"},
{"WEAPON_MACHETE", "Machete"},
{"WEAPON_FLASHLIGHT", "Flashlight"},
{"WEAPON_SWITCHBLADE", "Switchblade"},
{"WEAPON_POOLCUE", "Pool Cue"},
{"WEAPON_PIPEWRENCH", "Pipe Wrench"}
}
local thrownweapons = {
{"WEAPON_GRENADE", "Grenade"},
{"WEAPON_STICKYBOMB", "Sticky Bomb"},
{"WEAPON_PROXMINE", "Proximity Mine"},
{"WEAPON_BZGAS", "BZ Gas"},
{"WEAPON_SMOKEGRENADE", "Smoke Grenade"},
{"WEAPON_MOLOTOV", "Molotov"},
{"WEAPON_FIREEXTINGUISHER", "Fire Extinguisher"},
{"WEAPON_PETROLCAN", "Fuel Can"},
{"WEAPON_SNOWBALL", "Snowball"},
{"WEAPON_FLARE", "Flare"},
{"WEAPON_BALL", "Baseball"}
}
local pistolweapons = {
{"WEAPON_PISTOL", "Pistol"},
{"WEAPON_PISTOL_MK2", "Pistol Mk II"},
{"WEAPON_COMBATPISTOL", "Combat Pistol"},
{"WEAPON_APPISTOL", "AP Pistol"},
{"WEAPON_REVOLVER", "Revolver"},
{"WEAPON_REVOLVER_MK2", "Revolver Mk II"},
{"WEAPON_DOUBLEACTION", "Double Action Revolver"},
{"WEAPON_PISTOL50", "Pistol .50"},
{"WEAPON_SNSPISTOL", "SNS Pistol"},
{"WEAPON_SNSPISTOL_MK2", "SNS Pistol Mk II"},
{"WEAPON_HEAVYPISTOL", "Heavy Pistol"},
{"WEAPON_VINTAGEPISTOL", "Vintage Pistol"},
{"WEAPON_STUNGUN", "Tazer"},
{"WEAPON_FLAREGUN", "Flaregun"},
{"WEAPON_MARKSMANPISTOL", "Marksman Pistol"},
{"WEAPON_RAYPISTOL", "Up-n-Atomizer"}
}
local smgweapons = {
{"WEAPON_MICROSMG", "Micro SMG"},
{"WEAPON_MINISMG", "Mini SMG"},
{"WEAPON_SMG", "SMG"},
{"WEAPON_SMG_MK2", "SMG Mk II"},
{"WEAPON_ASSAULTSMG", "Assault SMG"},
{"WEAPON_COMBATPDW", "Combat PDW"},
{"WEAPON_GUSENBERG", "Gunsenberg"},
{"WEAPON_MACHINEPISTOL", "Machine Pistol"},
{"WEAPON_MG", "MG"},
{"WEAPON_COMBATMG", "Combat MG"},
{"WEAPON_COMBATMG_MK2", "Combat MG Mk II"},
{"WEAPON_RAYCARBINE", "Unholy Hellbringer"}
}
local assaultweapons = {
{"WEAPON_ASSAULTRIFLE", "Assault Rifle"},
{"WEAPON_ASSAULTRIFLE_MK2", "Assault Rifle Mk II"},
{"WEAPON_CARBINERIFLE", "Carbine Rifle"},
{"WEAPON_CARBINERIFLE_MK2", "Carbine Rigle Mk II"},
{"WEAPON_ADVANCEDRIFLE", "Advanced Rifle"},
{"WEAPON_SPECIALCARBINE", "Special Carbine"},
{"WEAPON_SPECIALCARBINE_MK2", "Special Carbine Mk II"},
{"WEAPON_BULLPUPRIFLE", "Bullpup Rifle"},
{"WEAPON_BULLPUPRIFLE_MK2", "Bullpup Rifle Mk II"},
{"WEAPON_COMPACTRIFLE", "Compact Rifle"}
}
local shotgunweapons = {
{"WEAPON_PUMPSHOTGUN", "Pump Shotgun"},
{"WEAPON_PUMPSHOTGUN_MK2", "Pump Shotgun Mk II"},
{"WEAPON_SWEEPERSHOTGUN", "Sweeper Shotgun"},
{"WEAPON_SAWNOFFSHOTGUN", "Sawed-Off Shotgun"},
{"WEAPON_BULLPUPSHOTGUN", "Bullpup Shotgun"},
{"WEAPON_ASSAULTSHOTGUN", "Assault Shotgun"},
{"WEAPON_MUSKET", "Musket"},
{"WEAPON_HEAVYSHOTGUN", "Heavy Shotgun"},
{"WEAPON_DBSHOTGUN", "Double Barrel Shotgun"}
}
local sniperweapons = {
{"WEAPON_SNIPERRIFLE", "Sniper Rifle"},
{"WEAPON_HEAVYSNIPER", "Heavy Sniper"},
{"WEAPON_HEAVYSNIPER_MK2", "Heavy Sniper Mk II"},
{"WEAPON_MARKSMANRIFLE", "Marksman Rifle"},
{"WEAPON_MARKSMANRIFLE_MK2", "Marksman Rifle Mk II"}
}
local heavyweapons = {
{"WEAPON_GRENADELAUNCHER", "Grenade Launcher"},
{"WEAPON_RPG", "RPG"},
{"WEAPON_MINIGUN", "Minigun"},
{"WEAPON_FIREWORK", "Firework Launcher"},
{"WEAPON_RAILGUN", "Railgun"},
{"WEAPON_HOMINGLAUNCHER", "Homing Launcher"},
{"WEAPON_COMPACTLAUNCHER", "Compact Grenade Launcher"},
{"WEAPON_RAYMINIGUN", "Widowmaker"}
}
-- END WEAPONS LISTS
-- VEHICLES LISTS
local compacts = {
"BLISTA",
"BRIOSO",
"DILETTANTE",
"DILETTANTE2",
"ISSI2",
"ISSI3",
"ISSI4",
"ISSI5",
"ISSI6",
"PANTO",
"PRAIRIE",
"RHAPSODY"
}
local sedans = {
"ASEA",
"ASEA2",
"ASTEROPE",
"COG55",
"COG552",
"COGNOSCENTI",
"COGNOSCENTI2",
"EMPEROR",
"EMPEROR2",
"EMPEROR3",
"FUGITIVE",
"GLENDALE",
"INGOT",
"INTRUDER",
"LIMO2",
"PREMIER",
"PRIMO",
"PRIMO2",
"REGINA",
"ROMERO",
"SCHAFTER2",
"SCHAFTER5",
"SCHAFTER6",
"STAFFORD",
"STANIER",
"STRATUM",
"STRETCH",
"SUPERD",
"SURGE",
"TAILGATER",
"WARRENER",
"WASHINGTON"
}
local suvs = {
"BALLER",
"BALLER2",
"BALLER3",
"BALLER4",
"BALLER5",
"BALLER6",
"BJXL",
"CAVALCADE",
"CAVALCADE2",
"CONTENDER",
"DUBSTA",
"DUBSTA2",
"FQ2",
"GRANGER",
"GRESLEY",
"HABANERO",
"HUNTLEY",
"LANDSTALKER",
"MESA",
"MESA2",
"PATRIOT",
"PATRIOT2",
"RADI",
"ROCOTO",
"SEMINOLE",
"SERRANO",
"TOROS",
"XLS",
"XLS2"
}
local coupes = {
"COGCABRIO",
"EXEMPLAR",
"F620",
"FELON",
"FELON2",
"JACKAL",
"ORACLE",
"ORACLE2",
"SENTINEL",
"SENTINEL2",
"WINDSOR",
"WINDSOR2",
"ZION",
"ZION2"
}
local muscle = {
"BLADE",
"BUCCANEER",
"BUCCANEER2",
"CHINO",
"CHINO2",
"CLIQUE",
"COQUETTE3",
"DEVIANT",
"DOMINATOR",
"DOMINATOR2",
"DOMINATOR3",
"DOMINATOR4",
"DOMINATOR5",
"DOMINATOR6",
"DUKES",
"DUKES2",
"ELLIE",
"FACTION",
"FACTION2",
"FACTION3",
"GAUNTLET",
"GAUNTLET2",
"HERMES",
"HOTKNIFE",
"HUSTLER",
"IMPALER",
"IMPALER2",
"IMPALER3",
"IMPALER4",
"IMPERATOR",
"IMPERATOR2",
"IMPERATOR3",
"LURCHER",
"MOONBEAM",
"MOONBEAM2",
"NIGHTSHADE",
"PHOENIX",
"PICADOR",
"RATLOADER",
"RATLOADER2",
"RUINER",
"RUINER2",
"RUINER3",
"SABREGT",
"SABREGT2",
"SLAMVAN",
"SLAMVAN2",
"SLAMVAN3",
"SLAMVAN4",
"SLAMVAN5",
"SLAMVAN6",
"STALION",
"STALION2",
"TAMPA",
"TAMPA3",
"TULIP",
"VAMOS",
"VIGERO",
"VIRGO",
"VIRGO2",
"VIRGO3",
"VOODOO",
"VOODOO2",
"YOSEMITE"
}
local sportsclassics = {
"ARDENT",
"BTYPE",
"BTYPE2",
"BTYPE3",
"CASCO",
"CHEBUREK",
"CHEETAH2",
"COQUETTE2",
"DELUXO",
"FAGALOA",
"FELTZER3",
"GT500",
"INFERNUS2",
"JB700",
"JESTER3",
"MAMBA",
"MANANA",
"MICHELLI",
"MONROE",
"PEYOTE",
"PIGALLE",
"RAPIDGT3",
"RETINUE",
"SAVESTRA",
"STINGER",
"STINGERGT",
"STROMBERG",
"SWINGER",
"TORERO",
"TORNADO",
"TORNADO2",
"TORNADO3",
"TORNADO4",
"TORNADO5",
"TORNADO6",
"TURISMO2",
"VISERIS",
"Z190",
"ZTYPE"
}
local sports = {
"ALPHA",
"BANSHEE",
"BESTIAGTS",
"BLISTA2",
"BLISTA3",
"BUFFALO",
"BUFFALO2",
"BUFFALO3",
"CARBONIZZARE",
"COMET2",
"COMET3",
"COMET4",
"COMET5",
"COQUETTE",
"ELEGY",
"ELEGY2",
"FELTZER2",
"FLASHGT",
"FUROREGT",
"FUSILADE",
"FUTO",
"GB200",
"HOTRING",
"ITALIGTO",
"JESTER",
"JESTER2",
"KHAMELION",
"KURUMA",
"KURUMA2",
"LYNX",
"MASSACRO",
"MASSACRO2",
"NEON",
"NINEF",
"NINEF2",
"OMNIS",
"PARIAH",
"PENUMBRA",
"RAIDEN",
"RAPIDGT",
"RAPIDGT2",
"RAPTOR",
"REVOLTER",
"RUSTON",
"SCHAFTER2",
"SCHAFTER3",
"SCHAFTER4",
"SCHAFTER5",
"SCHLAGEN",
"SCHWARZER",
"SENTINEL3",
"SEVEN70",
"SPECTER",
"SPECTER2",
"SULTAN",
"SURANO",
"TAMPA2",
"TROPOS",
"VERLIERER2",
"ZR380",
"ZR3802",
"ZR3803"
}
local super = {
"ADDER",
"AUTARCH",
"BANSHEE2",
"BULLET",
"CHEETAH",
"CYCLONE",
"DEVESTE",
"ENTITYXF",
"ENTITY2",
"FMJ",
"GP1",
"INFERNUS",
"ITALIGTB",
"ITALIGTB2",
"LE7B",
"NERO",
"NERO2",
"OSIRIS",
"PENETRATOR",
"PFISTER811",
"PROTOTIPO",
"REAPER",
"SC1",
"SCRAMJET",
"SHEAVA",
"SULTANRS",
"T20",
"TAIPAN",
"TEMPESTA",
"TEZERACT",
"TURISMOR",
"TYRANT",
"TYRUS",
"VACCA",
"VAGNER",
"VIGILANTE",
"VISIONE",
"VOLTIC",
"VOLTIC2",
"XA21",
"ZENTORNO"
}
local motorcycles = {
"AKUMA",
"AVARUS",
"BAGGER",
"BATI",
"BATI2",
"BF400",
"CARBONRS",
"CHIMERA",
"CLIFFHANGER",
"DAEMON",
"DAEMON2",
"DEFILER",
"DEATHBIKE",
"DEATHBIKE2",
"DEATHBIKE3",
"DIABLOUS",
"DIABLOUS2",
"DOUBLE",
"ENDURO",
"ESSKEY",
"FAGGIO",
"FAGGIO2",
"FAGGIO3",
"FCR",
"FCR2",
"GARGOYLE",
"HAKUCHOU",
"HAKUCHOU2",
"HEXER",
"INNOVATION",
"LECTRO",
"MANCHEZ",
"NEMESIS",
"NIGHTBLADE",
"OPPRESSOR",
"OPPRESSOR2",
"PCJ",
"RATBIKE",
"RUFFIAN",
"SANCHEZ",
"SANCHEZ2",
"SANCTUS",
"SHOTARO",
"SOVEREIGN",
"THRUST",
"VADER",
"VINDICATOR",
"VORTEX",
"WOLFSBANE",
"ZOMBIEA",
"ZOMBIEB"
}
local offroad = {
"BFINJECTION",
"BIFTA",
"BLAZER",
"BLAZER2",
"BLAZER3",
"BLAZER4",
"BLAZER5",
"BODHI2",
"BRAWLER",
"BRUISER",
"BRUISER2",
"BRUISER3",
"BRUTUS",
"BRUTUS2",
"BRUTUS3",
"CARACARA",
"DLOADER",
"DUBSTA3",
"DUNE",
"DUNE2",
"DUNE3",
"DUNE4",
"DUNE5",
"FREECRAWLER",
"INSURGENT",
"INSURGENT2",
"INSURGENT3",
"KALAHARI",
"KAMACHO",
"MARSHALL",
"MENACER",
"MESA3",
"MONSTER",
"MONSTER3",
"MONSTER4",
"MONSTER5",
"NIGHTSHARK",
"RANCHERXL",
"RANCHERXL2",
"RCBANDITO",
"REBEL",
"REBEL2",
"RIATA",
"SANDKING",
"SANDKING2",
"TECHNICAL",
"TECHNICAL2",
"TECHNICAL3",
"TROPHYTRUCK",
"TROPHYTRUCK2"
}
local industrial = {
"BULLDOZER",
"CUTTER",
"DUMP",
"FLATBED",
"GUARDIAN",
"HANDLER",
"MIXER",
"MIXER2",
"RUBBLE",
"TIPTRUCK",
"TIPTRUCK2"
}
local utility = {
"AIRTUG",
"CADDY",
"CADDY2",
"CADDY3",
"DOCKTUG",
"FORKLIFT",
"TRACTOR2",
"TRACTOR3",
"MOWER",
"RIPLEY",
"SADLER",
"SADLER2",
"SCRAP",
"TOWTRUCK",
"TOWTRUCK2",
"TRACTOR",
"UTILLITRUCK",
"UTILLITRUCK2",
"UTILLITRUCK3",
"ARMYTRAILER",
"ARMYTRAILER2",
"FREIGHTTRAILER",
"ARMYTANKER",
"TRAILERLARGE",
"DOCKTRAILER",
"TR3",
"TR2",
"TR4",
"TRFLAT",
"TRAILERS",
"TRAILERS4",
"TRAILERS2",
"TRAILERS3",
"TVTRAILER",
"TRAILERLOGS",
"TANKER",
"TANKER2",
"BALETRAILER",
"GRAINTRAILER",
"BOATTRAILER",
"RAKETRAILER",
"TRAILERSMALL"
}
local vans = {
"BISON",
"BISON2",
"BISON3",
"BOBCATXL",
"BOXVILLE",
"BOXVILLE2",
"BOXVILLE3",
"BOXVILLE4",
"BOXVILLE5",
"BURRITO",
"BURRITO2",
"BURRITO3",
"BURRITO4",
"BURRITO5",
"CAMPER",
"GBURRITO",
"GBURRITO2",
"JOURNEY",
"MINIVAN",