-
Notifications
You must be signed in to change notification settings - Fork 4
/
menu.lua
773 lines (740 loc) · 33.7 KB
/
menu.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
local options = {
x = 0.88,
y = 0.2,
width = 0.22,
height = 0.04,
scale = 0.4,
font = 2,
menu_title = "Main obj Menu",
menu_subtitle = "Categories",
color_r = 30,
color_g = 144,
color_b = 255,
}
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if DoesEntityExist(a) then
local position = 'objID '..a
local offset = {x = 0.290, y = 0.850}
local rgb = {r = 25, g = 25, b = 140}
local alpha = 255
local scale = 0.2
local font = 0
SetTextColour(rgb.r, rgb.g, rgb.b, alpha)
SetTextFont(font)
SetTextScale(scale, scale)
SetTextWrap(0.0, 1.0)
SetTextCentre(false)
SetTextDropshadow(2, 2, 0, 0, 0)
SetTextEdge(1, 0, 0, 0, 205)
SetTextEntry("STRING")
AddTextComponentString(position)
DrawText(offset.x, offset.y)
end
end
end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if DoesEntityExist(a) then
local position = "obj rotation "..entityRot
local offset = {x = 0.290, y = 0.860}
local rgb = {r = 25, g = 25, b = 150}
local alpha = 255
local scale = 0.2
local font = 0
SetTextColour(rgb.r, rgb.g, rgb.b, alpha)
SetTextFont(font)
SetTextScale(scale, scale)
SetTextWrap(0.0, 1.0)
SetTextCentre(false)
SetTextDropshadow(2, 2, 0, 0, 0)
SetTextEdge(1, 0, 0, 0, 205)
SetTextEntry("STRING")
AddTextComponentString(position)
DrawText(offset.x, offset.y)
end
end
end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if DoesEntityExist(a) then
local position = "obj coords "..entityCoords
local offset = {x = 0.290, y = 0.870}
local rgb = {r = 25, g = 25, b = 120}
local alpha = 255
local scale = 0.2
local font = 0
SetTextColour(rgb.r, rgb.g, rgb.b, alpha)
SetTextFont(font)
SetTextScale(scale, scale)
SetTextWrap(0.0, 1.0)
SetTextCentre(false)
SetTextDropshadow(2, 2, 0, 0, 0)
SetTextEdge(1, 0, 0, 0, 205)
SetTextEntry("STRING")
AddTextComponentString(position)
DrawText(offset.x, offset.y)
end
end
end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if DoesEntityExist(a) then
if DoesEntityHavePhysics(a) then
c = "yes"
else
c = "no"
end
local position = "does obj have physics "..c
local offset = {x = 0.290, y = 0.880}
local rgb = {r = 25, g = 25, b = 130}
local alpha = 255
local scale = 0.2
local font = 0
SetTextColour(rgb.r, rgb.g, rgb.b, alpha)
SetTextFont(font)
SetTextScale(scale, scale)
SetTextWrap(0.0, 1.0)
SetTextCentre(false)
SetTextDropshadow(2, 2, 0, 0, 0)
SetTextEdge(1, 0, 0, 0, 205)
SetTextEntry("STRING")
AddTextComponentString(position)
DrawText(offset.x, offset.y)
end
end
end)
Citizen.CreateThread(function()
while true do
isEntityAttached = IsEntityAttached(a)
Citizen.Wait(0)
if DoesEntityExist(a) then
if IsEntityAttached(a) then
d = "yes"
else
d = "no"
end
local position = "is Entity Attached "..d
local offset = {x = 0.290, y = 0.890}
local rgb = {r = 25, g = 25, b = 160}
local alpha = 255
local scale = 0.2
local font = 0
SetTextColour(rgb.r, rgb.g, rgb.b, alpha)
SetTextFont(font)
SetTextScale(scale, scale)
SetTextWrap(0.0, 1.0)
SetTextCentre(false)
SetTextDropshadow(2, 2, 0, 0, 0)
SetTextEdge(1, 0, 0, 0, 205)
SetTextEntry("STRING")
AddTextComponentString(position)
DrawText(offset.x, offset.y)
end
end
end)
isEntityAttached = IsEntityAttached(attach)
function Notify(text)
SetNotificationTextEntry('STRING')
AddTextComponentString(text)
DrawNotification(false, false)
end
function drawTxt(text, font, centre, x, y, scale, r, g, b, a)
SetTextFont(font)
SetTextProportional(0)
SetTextScale(scale, scale)
SetTextColour(r, g, b, a)
SetTextDropShadow(0, 0, 0, 0, 255)
SetTextEdge(1, 0, 0, 0, 255)
SetTextDropShadow()
SetTextOutline()
SetTextCentre(centre)
SetTextEntry("STRING")
AddTextComponentString(text)
DrawText(x, y)
end
function DisplayHelpText(str)
SetTextComponentFormat("STRING")
AddTextComponentString(str)
DisplayHelpTextFromStringLabel(0, 1, 1, -1)
end
--[[*************************************************************]]
------------------------------------------------------------------
--------------------------main menu-------------------------------
------------------------------------------------------------------
--[[*************************************************************]]
function Main()
DisplayHelpText("Use ~INPUT_CELLPHONE_UP~ ~INPUT_CELLPHONE_DOWN~ to ~y~move~w~ and ~y~Enter~w~ to ~r~select")
Notify("Press ~r~F5 ~w~to ~g~open~w~/~r~close~w~!")
options.menu_title = "my menyoo"
options.menu_subtitle = "~o~main menu"
ClearMenu()
Menu.addButton("~y~GunRunning ~b~menu", "GRCrateMenu", nil)
Menu.addButton("~y~GunRunning MOC ~b~menu", "MOCmoules", nil)
Menu.addButton("~y~MP race track ~b~menu", "mpRacetrack", nil)
end
--[[*************************************************************]]
------------------------------------------------------------------
--------------------------dlc menu's---------------------------
------------------------------------------------------------------
--[[*************************************************************]]
------------------------------------------------------------------
--------------------------gunrunning obj menu---------------------
------------------------------------------------------------------
function GRCrateMenu()
DisplayHelpText("Use ~INPUT_CELLPHONE_UP~ ~INPUT_CELLPHONE_DOWN~ to ~y~move~w~ and ~y~Enter~w~ to ~r~select")
Notify("Press ~r~F5 ~w~to ~g~open~w~/~r~close~w~!")
options.menu_title = "~y~GunRunning"
options.menu_subtitle = "select object to spawn"
ClearMenu()
Menu.addButton("adv_case", "objMenuGRAdvCase", nil)
Menu.addButton("carcreeper", "objMenuGRCarCreeper", nil)
Menu.addButton("gun crate 01a", "objMenuGRCrateGun01a", nil)
Menu.addButton("mag crate 01a", "objMenuGRCrateMag01a", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
------------------------------------------------------------------
--------------------------gunrunning MOC obj menu-----------------
------------------------------------------------------------------
function MOCmoules()
DisplayHelpText("Use ~INPUT_CELLPHONE_UP~ ~INPUT_CELLPHONE_DOWN~ to ~y~move~w~ and ~y~Enter~w~ to ~r~select")
Notify("Press ~r~F5 ~w~to ~g~open~w~/~r~close~w~!")
options.menu_title = "~y~GunRunning MOC"
options.menu_subtitle = "select object to spawn"
ClearMenu()
Menu.addButton("MOC carmod", "MOCCarMod01", nil)
Menu.addButton("MOC command", "MOCCommand01", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
------------------------------------------------------------------
------------------race track spawn menu------------------------
------------------------------------------------------------------
function mpRacetrack()
DisplayHelpText("Use ~INPUT_CELLPHONE_UP~ ~INPUT_CELLPHONE_DOWN~ to ~y~move~w~ and ~y~Enter~w~ to ~r~select")
Notify("Press ~r~F5 ~w~to ~g~open~w~/~r~close~w~!")
options.menu_title = "~y~MP race track"
options.menu_subtitle = "select object to spawn"
ClearMenu()
Menu.addButton("track bend 2 bar left", "trackBend2BarL", nil)
Menu.addButton("track bend 2 left", "trackBend2L", nil)
Menu.addButton("track bend 2 left", "trackBend2LB", nil)
Menu.addButton("track bend 5d", "trackBend5d", nil)
Menu.addButton("track bend 5d bar", "trackBend5dBar", nil)
Menu.addButton("track bend 15d", "trackBend15d", nil)
Menu.addButton("~y~NEXT PAGE", "mpRacetrackPg2", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
------------------------------------------------------------------
------------------race track page 2 spawn menu--------------------
------------------------------------------------------------------
function mpRacetrackPg2()
DisplayHelpText("Use ~INPUT_CELLPHONE_UP~ ~INPUT_CELLPHONE_DOWN~ to ~y~move~w~ and ~y~Enter~w~ to ~r~select")
Notify("Press ~r~F5 ~w~to ~g~open~w~/~r~close~w~!")
options.menu_title = "~y~MP race track"
options.menu_subtitle = "select object to spawn"
ClearMenu()
Menu.addButton("track bend 15d bar", "trackBend15dBar", nil)
Menu.addButton("~g~BACK", "mpRacetrack", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
--[[*************************************************************]]
------------------------------------------------------------------
--------------------------obj menu's---------------------------
------------------------------------------------------------------
--[[*************************************************************]]
------------------------------------------------------------------
-----------------------advanced case spawn menu-------------------
------------------------------------------------------------------
n = 0
function addObjToArray(obj)
objCoords = GetEntityCoords(obj)
objRot = GetEntityRotation(obj)
objArray = {}
objArray["obj"] = obj
objArray["objCoords"] = objCoords
objArray["objRot"] = objRot
end
function objMenuGRAdvCase()
DisplayHelpText("Use ~INPUT_CELLPHONE_UP~ ~INPUT_CELLPHONE_DOWN~ to ~y~move~w~ and ~y~Enter~w~ to ~r~select")
Notify("Press ~r~F5 ~w~to ~g~open~w~/~r~close~w~!")
options.menu_title = "~y~GunRunning"
options.menu_subtitle = "advanced case"
ClearMenu()
Menu.addButton("~b~spawn ~y~advanced case", "things1", -739654066)
Menu.addButton("~b~move ~y~advanced case", "moveAdvCase", nil)
Menu.addButton("~b~add to array ~y~advanced case", "addObjToArray", a)
Menu.addButton("~b~disable collision ~y~advanced case", "setCollisionStuff", true)
Menu.addButton("~b~enable collision ~y~advanced case", "setCollisionStuff", false)
Menu.addButton("~r~delete object", "deleteStuff", nil)
Menu.addButton("~g~back", "GRCrateMenu", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
------------------------------------------------------------------
--------------------------car creeper spawn menu------------------
------------------------------------------------------------------
function objMenuGRCarCreeper()
DisplayHelpText("Use ~INPUT_CELLPHONE_UP~ ~INPUT_CELLPHONE_DOWN~ to ~y~move~w~ and ~y~Enter~w~ to ~r~select")
Notify("Press ~r~F5 ~w~to ~g~open~w~/~r~close~w~!")
options.menu_title = "~y~GunRunning"
options.menu_subtitle = "car creeper"
ClearMenu()
Menu.addButton("~b~spawn ~y~car creeper", "things1", 1177042352)
Menu.addButton("~b~move ~y~car creeper", "moveCarCreeper", nil)
Menu.addButton("~b~disable collision ~y~car creeper", "setCollisionStuff", true)
Menu.addButton("~b~enable collision ~y~car creeper", "setCollisionStuff", false)
Menu.addButton("~r~delete object", "deleteStuff", nil)
Menu.addButton("~g~back", "GRCrateMenu", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
------------------------------------------------------------------
---------------------gun crate 01a spawn menu---------------------
------------------------------------------------------------------
function objMenuGRCrateGun01a()
DisplayHelpText("Use ~INPUT_CELLPHONE_UP~ ~INPUT_CELLPHONE_DOWN~ to ~y~move~w~ and ~y~Enter~w~ to ~r~select")
Notify("Press ~r~F5 ~w~to ~g~open~w~/~r~close~w~!")
options.menu_title = "~y~GunRunning"
options.menu_subtitle = "gun crate"
ClearMenu()
Menu.addButton("~b~spawn ~y~gun crate 01a", "things1", -471632408)
Menu.addButton("~b~spawn ~y~dinghy", "things1", 1033245328)
Menu.addButton("~b~move ~y~gun crate 01a", "moveGunCrate01a", nil)
Menu.addButton("~b~disable collision ~y~gun crate 01a", "setCollisionStuff", true)
Menu.addButton("~b~enable collision ~y~gun crate 01a", "setCollisionStuff", false)
Menu.addButton("~r~delete object", "deleteStuff", nil)
Menu.addButton("~g~back", "GRCrateMenu", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
------------------------------------------------------------------
------------------mag crate 01a spawn menu------------------------
------------------------------------------------------------------
function objMenuGRCrateMag01a()
DisplayHelpText("Use ~INPUT_CELLPHONE_UP~ ~INPUT_CELLPHONE_DOWN~ to ~y~move~w~ and ~y~Enter~w~ to ~r~select")
Notify("Press ~r~F5 ~w~to ~g~open~w~/~r~close~w~!")
options.menu_title = "~y~GunRunning"
options.menu_subtitle = "mag crate"
ClearMenu()
Menu.addButton("~b~spawn ~y~mag crate 01", "things1", 1281731670)
Menu.addButton("~b~move ~y~mag crate 01", "moveMagCrate01a", nil)
Menu.addButton("~b~disable collision ~y~mag crate 01", "setCollisionStuff", true)
Menu.addButton("~b~enable collision ~y~mag crate 01", "setCollisionStuff", false)
Menu.addButton("~r~delete object", "deleteStuff", nil)
Menu.addButton("~g~back", "GRCrateMenu", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
------------------------------------------------------------------
------------------MOC carmod spawn menu------------------------
------------------------------------------------------------------
function MOCCarMod01()
DisplayHelpText("Use ~INPUT_CELLPHONE_UP~ ~INPUT_CELLPHONE_DOWN~ to ~y~move~w~ and ~y~Enter~w~ to ~r~select")
Notify("Press ~r~F5 ~w~to ~g~open~w~/~r~close~w~!")
options.menu_title = "~y~GunRunning MOC"
options.menu_subtitle = "MOC carmod"
ClearMenu()
Menu.addButton("~b~spawn ~y~MOC carmod 01", "things1", -2083549178)
Menu.addButton("~b~move ~y~MOC carmod 01", "moveMOCCarmod", nil)
Menu.addButton("~b~disable collision ~y~MOC carmod 01", "setCollisionStuff", true)
Menu.addButton("~b~enable collision ~y~MOC carmod 01", "setCollisionStuff", false)
Menu.addButton("~r~delete object", "deleteStuff", nil)
Menu.addButton("~g~BACK", "MOCmoules", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
------------------------------------------------------------------
------------------MOC command spawn menu------------------------
------------------------------------------------------------------
function MOCCommand01()
DisplayHelpText("Use ~INPUT_CELLPHONE_UP~ ~INPUT_CELLPHONE_DOWN~ to ~y~move~w~ and ~y~Enter~w~ to ~r~select")
Notify("Press ~r~F5 ~w~to ~g~open~w~/~r~close~w~!")
options.menu_title = "~y~GunRunning MOC"
options.menu_subtitle = "MOC command"
ClearMenu()
Menu.addButton("~b~spawn ~y~MOC command 01", "things1", -2104782239)
Menu.addButton("~b~disable collision ~y~MOC command 01", "setCollisionStuff", true)
Menu.addButton("~b~enable collision ~y~MOC command 01", "setCollisionStuff", false)
Menu.addButton("~r~delete object", "deleteStuff", nil)
Menu.addButton("~g~BACK", "MOCmoules", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
------------------------------------------------------------------
-----------------------track bend 2 bar left spawn menu--------------
------------------------------------------------------------------
function trackBend2BarL()
DisplayHelpText("Use ~INPUT_CELLPHONE_UP~ ~INPUT_CELLPHONE_DOWN~ to ~y~move~w~ and ~y~Enter~w~ to ~r~select")
Notify("Press ~r~F5 ~w~to ~g~open~w~/~r~close~w~!")
options.menu_title = "~y~MP race track"
options.menu_subtitle = "track bend 2 bar left"
ClearMenu()
Menu.addButton("~b~spawn ~y~track bend 2 bar left", "things1", "stt_prop_track_bend2_bar_l")
Menu.addButton("~b~disable collision ~y~track bend 2 bar left", "setCollisionStuff", true)
Menu.addButton("~b~enable collision ~y~track bend 2 bar left", "setCollisionStuff", false)
Menu.addButton("~r~delete object", "deleteStuff", nil)
Menu.addButton("~g~BACK", "mpRacetrack", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
------------------------------------------------------------------
-----------------------track bend 2 left spawn menu------------------
------------------------------------------------------------------
function trackBend2L()
DisplayHelpText("Use ~INPUT_CELLPHONE_UP~ ~INPUT_CELLPHONE_DOWN~ to ~y~move~w~ and ~y~Enter~w~ to ~r~select")
Notify("Press ~r~F5 ~w~to ~g~open~w~/~r~close~w~!")
options.menu_title = "~y~MP race track"
options.menu_subtitle = "track bend 2 left"
ClearMenu()
Menu.addButton("~b~spawn ~y~track bend 2 left", "things1", "stt_prop_track_bend2_l")
Menu.addButton("~b~disable collision ~y~track bend 2 left", "setCollisionStuff", true)
Menu.addButton("~b~enable collision ~y~track bend 2 left", "setCollisionStuff", false)
Menu.addButton("~r~delete object", "deleteStuff", nil)
Menu.addButton("~g~BACK", "mpRacetrack", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
------------------------------------------------------------------
-----------------------track bend 2 left b spawn menu-------------
------------------------------------------------------------------
function trackBend2LB()
DisplayHelpText("Use ~INPUT_CELLPHONE_UP~ ~INPUT_CELLPHONE_DOWN~ to ~y~move~w~ and ~y~Enter~w~ to ~r~select")
Notify("Press ~r~F5 ~w~to ~g~open~w~/~r~close~w~!")
options.menu_title = "~y~MP race track"
options.menu_subtitle = "track bend 2 left b"
ClearMenu()
Menu.addButton("~b~spawn ~y~track bend 2 left b", "things1", "stt_prop_track_bend2_l_b")
Menu.addButton("~b~disable collision ~y~track bend 2 left b", "setCollisionStuff", true)
Menu.addButton("~b~enable collision ~y~track bend 2 left b", "setCollisionStuff", false)
Menu.addButton("~r~delete object", "deleteStuff", nil)
Menu.addButton("~g~BACK", "mpRacetrack", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
------------------------------------------------------------------
-----------------------track bend 5 d spawn menu------------------
------------------------------------------------------------------
function trackBend5d()
DisplayHelpText("Use ~INPUT_CELLPHONE_UP~ ~INPUT_CELLPHONE_DOWN~ to ~y~move~w~ and ~y~Enter~w~ to ~r~select")
Notify("Press ~r~F5 ~w~to ~g~open~w~/~r~close~w~!")
options.menu_title = "~y~MP race track"
options.menu_subtitle = "track bend 5 d"
ClearMenu()
Menu.addButton("~b~spawn ~y~track bend 5 d", "things1", "stt_prop_track_bend_5d")
Menu.addButton("~b~move ~y~track bend 5 d", "moveTrackBend5d", nil)
Menu.addButton("~b~disable collision ~y~track bend 5 d", "setCollisionStuff", true)
Menu.addButton("~b~enable collision ~y~track bend 5 d", "setCollisionStuff", false)
Menu.addButton("~r~delete object", "deleteStuff", nil)
Menu.addButton("~g~BACK", "mpRacetrack", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
------------------------------------------------------------------
-----------------------track bend 5 d bar spawn menu------------------
------------------------------------------------------------------
function trackBend5dBar()
DisplayHelpText("Use ~INPUT_CELLPHONE_UP~ ~INPUT_CELLPHONE_DOWN~ to ~y~move~w~ and ~y~Enter~w~ to ~r~select")
Notify("Press ~r~F5 ~w~to ~g~open~w~/~r~close~w~!")
options.menu_title = "~y~MP race track"
options.menu_subtitle = "track bend 5 d bar"
ClearMenu()
Menu.addButton("~b~spawn ~y~track bend 5 d bar", "things1", "stt_prop_track_bend_5d_bar")
Menu.addButton("~b~move ~y~track bend 5 d bar", "moveTrackBend5dBar", nil)
Menu.addButton("~b~disable collision ~y~track bend 5 d bar", "setCollisionStuff", true)
Menu.addButton("~b~enable collision ~y~track bend 5 d bar", "setCollisionStuff", false)
Menu.addButton("~r~delete object", "deleteStuff", nil)
Menu.addButton("~g~BACK", "mpRacetrack", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
function trackBend15d()
DisplayHelpText("Use ~INPUT_CELLPHONE_UP~ ~INPUT_CELLPHONE_DOWN~ to ~y~move~w~ and ~y~Enter~w~ to ~r~select")
Notify("Press ~r~F5 ~w~to ~g~open~w~/~r~close~w~!")
options.menu_title = "~y~MP race track"
options.menu_subtitle = "track bend 15 d"
ClearMenu()
Menu.addButton("~b~spawn ~y~track bend 15 d bar", "things1", "stt_prop_track_bend_15d")
Menu.addButton("~b~move ~y~track bend 15 d bar", "moveTrackBend15d", nil)
Menu.addButton("~b~disable collision ~y~track bend 15 d", "setCollisionStuff", true)
Menu.addButton("~b~enable collision ~y~track bend 15 d", "setCollisionStuff", false)
Menu.addButton("~r~delete object", "deleteStuff", nil)
Menu.addButton("~g~BACK", "mpRacetrackPg2", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
function trackBend15dBar()
DisplayHelpText("Use ~INPUT_CELLPHONE_UP~ ~INPUT_CELLPHONE_DOWN~ to ~y~move~w~ and ~y~Enter~w~ to ~r~select")
Notify("Press ~r~F5 ~w~to ~g~open~w~/~r~close~w~!")
options.menu_title = "~y~MP race track"
options.menu_subtitle = "track bend 15 d bar"
ClearMenu()
Menu.addButton("~b~spawn ~y~track bend 15 d bar", "things1", "stt_prop_track_bend_15d_bar")
Menu.addButton("~b~move ~y~track bend 15 d bar", "moveTrackBend15dBar", nil)
Menu.addButton("~b~disable collision ~y~track bend 15 d", "setCollisionStuff", true)
Menu.addButton("~b~enable collision ~y~track bend 15 d", "setCollisionStuff", false)
Menu.addButton("~r~delete object", "deleteStuff", nil)
Menu.addButton("~g~BACK", "mpRacetrackPg2", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
--[[*************************************************************]]
------------------------------------------------------------------
-----------------------move menu's--------------------------------
------------------------------------------------------------------
--[[*************************************************************]]
------------------------------------------------------------------
-----------------------move advanced case menu--------------------
------------------------------------------------------------------
function moveAdvCase()
Notify("use arrow keys to move obj ~n~Press [ ] keys to rotate on Y~n~ Press - = keys to rotate on X")
Notify("Press NUM- NUM+ to change heading ~n~ Press pgUP PgDOWN to change hight")
Notify("~r~enter ~w~to freeze ")
options.menu_title = "~y~move menu"
options.menu_subtitle = "move object"
ClearMenu()
freezeStuff()
Menu.addButton("~b~unfreeze ~bl~advanced case", "moveAdvCase0", nil)
Menu.addButton("~g~back", "objMenuGRAdvCase", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
function moveAdvCase0()
Notify("use arrow keys to move obj ~n~Press [ ] keys to rotate on Y~n~ Press - = keys to rotate on X")
Notify("Press NUM- NUM+ to change heading ~n~ Press pgUP PgDOWN to change hight")
Notify("~r~enter ~w~to freeze ")
options.menu_title = "~y~move menu"
options.menu_subtitle = "move object"
ClearMenu()
Menu.addButton("~b~freeze ~y~advanced case", "moveAdvCase", nil)
unfreezeStuff()
end
------------------------------------------------------------------
-----------------------move car creeper menu----------------------
------------------------------------------------------------------
function moveCarCreeper()
Notify("use arrow keys to move obj ~n~Press [ ] keys to rotate on Y~n~ Press - = keys to rotate on X")
Notify("Press NUM- NUM+ to change heading ~n~ Press pgUP PgDOWN to change hight")
Notify("~r~enter ~w~to freeze ")
options.menu_title = "~y~move menu"
options.menu_subtitle = "move object"
ClearMenu()
freezeStuff()
Menu.addButton("~b~unfreeze ~y~car creeper", "moveCarCreeper0", nil)
Menu.addButton("~g~back", "objMenuGRAdvCase", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
function moveCarCreeper0()
Notify("use arrow keys to move obj ~n~Press [ ] keys to rotate on Y~n~ Press - = keys to rotate on X")
Notify("Press NUM- NUM+ to change heading ~n~ Press pgUP PgDOWN to change hight")
Notify("~r~enter ~w~to freeze ")
options.menu_title = "~y~move menu"
options.menu_subtitle = "move object"
ClearMenu()
Menu.addButton("~b~freeze ~y~Car Creeper", "moveCarCreeper", nil)
unfreezeStuff()
end
------------------------------------------------------------------
-----------------------move gun crate menu----------------------
------------------------------------------------------------------
function moveGunCrate01a()
Notify("use arrow keys to move obj ~n~Press [ ] keys to rotate on Y~n~ Press - = keys to rotate on X")
Notify("Press NUM- NUM+ to change heading ~n~ Press pgUP PgDOWN to change hight")
Notify("~r~enter ~w~to freeze ")
options.menu_title = "~y~move menu"
options.menu_subtitle = "move object"
ClearMenu()
freezeStuff()
Menu.addButton("~b~unfreeze ~y~car creeper", "moveGunCrate01a0", nil)
Menu.addButton("~g~back", "objMenuGRCrateGun01a", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
function moveGunCrate01a0()
Notify("use arrow keys to move obj ~n~Press [ ] keys to rotate on Y~n~ Press - = keys to rotate on X")
Notify("Press NUM- NUM+ to change heading ~n~ Press pgUP PgDOWN to change hight")
Notify("~r~enter ~w~to freeze ")
options.menu_title = "~y~move menu"
options.menu_subtitle = "move object"
ClearMenu()
Menu.addButton("~b~freeze ~y~Car Creeper", "moveGunCrate01a", nil)
unfreezeStuff()
end
------------------------------------------------------------------
-----------------------move mag crate menu----------------------
------------------------------------------------------------------
function moveMagCrate01a()
Notify("use arrow keys to move obj ~n~Press [ ] keys to rotate on Y~n~ Press - = keys to rotate on X")
Notify("Press NUM- NUM+ to change heading ~n~ Press pgUP PgDOWN to change hight")
Notify("~r~enter ~w~to freeze ")
options.menu_title = "~y~move menu"
options.menu_subtitle = "move object"
ClearMenu()
freezeStuff()
Menu.addButton("~b~unfreeze ~y~car creeper", "moveMagCrate01a0", nil)
Menu.addButton("~g~back", "objMenuGRCrateGun01a", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
function moveMagCrate01a0()
Notify("use arrow keys to move obj ~n~Press [ ] keys to rotate on Y~n~ Press - = keys to rotate on X")
Notify("Press NUM- NUM+ to change heading ~n~ Press pgUP PgDOWN to change hight")
Notify("~r~enter ~w~to freeze ")
options.menu_title = "~y~move menu"
options.menu_subtitle = "move object"
ClearMenu()
Menu.addButton("~b~freeze ~y~Car Creeper", "moveMagCrate01a", nil)
unfreezeStuff()
end
------------------------------------------------------------------
-----------------------move MOC carmod menu----------------------
------------------------------------------------------------------
function moveMOCCarmod()
Notify("use arrow keys to move obj ~n~Press [ ] keys to rotate on Y~n~ Press - = keys to rotate on X")
Notify("Press NUM- NUM+ to change heading ~n~ Press pgUP PgDOWN to change hight")
Notify("~r~enter ~w~to freeze ")
options.menu_title = "~y~move menu"
options.menu_subtitle = "move object"
ClearMenu()
freezeStuff()
Menu.addButton("~b~unfreeze ~y~car creeper", "moveMOCCarmod0", nil)
Menu.addButton("~g~back", "MOCmoules", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
function moveMOCCarmod0()
Notify("use arrow keys to move obj ~n~Press [ ] keys to rotate on Y~n~ Press - = keys to rotate on X")
Notify("Press NUM- NUM+ to change heading ~n~ Press pgUP PgDOWN to change hight")
Notify("~r~enter ~w~to freeze ")
options.menu_title = "~y~move menu"
options.menu_subtitle = "move object"
ClearMenu()
Menu.addButton("~b~freeze ~y~Car Creeper", "moveMOCCarmod", nil)
unfreezeStuff()
end
------------------------------------------------------------------
-----------------------move track bend 5 d menu-------------------
------------------------------------------------------------------
function moveTrackBend5d()
Notify("use arrow keys to move obj ~n~Press [ ] keys to rotate on Y~n~ Press - = keys to rotate on X")
Notify("Press NUM- NUM+ to change heading ~n~ Press pgUP PgDOWN to change hight")
Notify("~r~enter ~w~to freeze ")
options.menu_title = "~y~move menu"
options.menu_subtitle = "move object"
ClearMenu()
freezeStuff()
Menu.addButton("~b~unfreeze ~y~track bend 5 d", "moveTrackBend5d0", nil)
Menu.addButton("~g~back", "trackBend5d", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
function moveTrackBend5d0()
Notify("use arrow keys to move obj ~n~Press [ ] keys to rotate on Y~n~ Press - = keys to rotate on X")
Notify("Press NUM- NUM+ to change heading ~n~ Press pgUP PgDOWN to change hight")
Notify("~r~enter ~w~to freeze ")
options.menu_title = "~y~move menu"
options.menu_subtitle = "move object"
ClearMenu()
Menu.addButton("~b~freeze ~y~track bend 5 d", "moveTrackBend5d", nil)
unfreezeStuff()
end
------------------------------------------------------------------
-----------------------move track bend 5 d bar menu-------------------
------------------------------------------------------------------
function moveTrackBend5dBar()
Notify("use arrow keys to move obj ~n~Press [ ] keys to rotate on Y~n~ Press - = keys to rotate on X")
Notify("Press NUM- NUM+ to change heading ~n~ Press pgUP PgDOWN to cange hight")
Notify("~r~enter ~w~to freeze ")
options.menu_title = "~y~move menu"
options.menu_subtitle = "move object"
ClearMenu()
freezeStuff()
Menu.addButton("~b~unfreeze ~y~track bend 5 d bar", "moveTrackBend5dBar0", nil)
Menu.addButton("~g~back", "trackBend5dBar", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
function moveTrackBend5dBar0()
Notify("use arrow keys to move obj ~n~Press [ ] keys to rotate on Y~n~ Press - = keys to rotate on X")
Notify("Press NUM- NUM+ to change heading ~n~ Press pgUP PgDOWN to change hight")
Notify("~r~enter ~w~to freeze ")
options.menu_title = "~y~move menu"
options.menu_subtitle = "move object"
ClearMenu()
Menu.addButton("~b~freeze ~y~track bend 5 d bar", "moveTrackBend5dBar", nil)
unfreezeStuff()
end
------------------------------------------------------------------
-----------------------move track bend 15 d menu-------------------
------------------------------------------------------------------
function moveTrackBend15d()
Notify("use arrow keys to move obj ~n~Press [ ] keys to rotate on Y~n~ Press - = keys to rotate on X")
Notify("Press NUM- NUM+ to change heading ~n~ Press pgUP PgDOWN to cange hight")
Notify("~r~enter ~w~to freeze ")
options.menu_title = "~y~move menu"
options.menu_subtitle = "move object"
ClearMenu()
freezeStuff()
Menu.addButton("~b~unfreeze ~y~track bend 5 d bar", "moveTrackBend15d0", nil)
Menu.addButton("~g~back", "trackBend15d", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
function moveTrackBend15d0()
Notify("use arrow keys to move obj ~n~Press [ ] keys to rotate on Y~n~ Press - = keys to rotate on X")
Notify("Press NUM- NUM+ to change heading ~n~ Press pgUP PgDOWN to change hight")
Notify("~r~enter ~w~to freeze ")
options.menu_title = "~y~move menu"
options.menu_subtitle = "move object"
ClearMenu()
Menu.addButton("~b~freeze ~y~track bend 5 d bar", "moveTrackBend15d", nil)
unfreezeStuff()
end
------------------------------------------------------------------
-----------------------move track bend 15 d menu-------------------
------------------------------------------------------------------
function moveTrackBend15dBar()
Notify("use arrow keys to move obj ~n~Press [ ] keys to rotate on Y~n~ Press - = keys to rotate on X")
Notify("Press NUM- NUM+ to change heading ~n~ Press pgUP PgDOWN to cange hight")
Notify("~r~enter ~w~to freeze ")
options.menu_title = "~y~move menu"
options.menu_subtitle = "move object"
ClearMenu()
freezeStuff()
Menu.addButton("~b~unfreeze ~y~track bend 5 d bar", "moveTrackBend15dBar0", nil)
Menu.addButton("~g~back", "mpRacetrackPg2", nil)
Menu.addButton("~g~BACK TO MAIN MENU", "Main", nil)
end
function moveTrackBend15dBar0()
Notify("use arrow keys to move obj ~n~Press [ ] keys to rotate on Y~n~ Press - = keys to rotate on X")
Notify("Press NUM- NUM+ to change heading ~n~ Press pgUP PgDOWN to change hight")
Notify("~r~enter ~w~to freeze ")
options.menu_title = "~y~move menu"
options.menu_subtitle = "move object"
ClearMenu()
Menu.addButton("~b~freeze ~y~track bend 15 d bar", "moveTrackBend15dBar", nil)
unfreezeStuff()
end
--[[*************************************************************]]
------------------------------------------------------------------
-----------------------other stuff-------------------
------------------------------------------------------------------
--[[*************************************************************]]
------------------------------------------------------------------
--------------------------obj spawner-----------------------------
------------------------------------------------------------------
function things1(stuff1)
Citizen.CreateThread(function()
--this requests the model of what is to be spawned
RequestModel(stuff1)
if not HasModelLoaded(stuff1) then
Citizen.Wait(0)
--if model is a veh then spawn a veh
end
--spawn the object
a = CreateObjectNoOffset(stuff1, playerCoordsX+1, playerCoordsY+1, playerCoordsZ, 1, 0, 0)
setCollisionStuff(true)
freezeStuff()
SetEntityHeading(a, playerHeading)
end)
end
--function things(stuff)
--things(stuff)
--spawnStuff(stuff)
--end
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--Press F7 to open/close menu
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if IsControlJustReleased(1, 168) then -- INPUT_CELLPHONE_DOWN
Main() -- Menu to draw
Menu.hidden = not Menu.hidden -- Hide/Show the menu
end
Menu.renderGUI(options) -- Draw menu on each tick if Menu.hidden = false
end
end)