-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCandy Menu VIP v2.2.lua
9967 lines (9387 loc) · 353 KB
/
Candy Menu VIP v2.2.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
local function RGBAToInt(R, G, B, A)
A = A or 255
return ((R&0x0ff)<<0x00)|((G&0x0ff)<<0x08)|((B&0x0ff)<<0x10)|((A&0x0ff)<<0x18)
end
menu.notify("Welcome to Candy Menu VIP", "Candy Menu VIP", 6, RGBAToInt(0, 182, 255))
menu.notify("I'm always keeping my eyes on you, by the means you know or not!", "Candy Menu VIP", 6, RGBAToInt(80, 0, 180))
menu.create_thread(function()
script_execute_scaleform = graphics.request_scaleform_movie("mp_big_message_freemode")
script_execute_scaleform_do = 1
audio.play_sound_from_coord(-1, "LOSER", player.get_player_coords(player.player_id()), "HUD_AWARDS", false, 0, true)
script_execute_scaleform_thread = menu.create_thread(function()
while script_execute_scaleform_do == 1 do
system.yield(0)
end
end, nil)
system.wait(5000)
audio.play_sound_from_coord(-1, "CHECKPOINT_AHEAD", player.get_player_coords(player.player_id()), "HUD_MINI_GAME_SOUNDSET", false, 0, true)
graphics.set_scaleform_movie_as_no_longer_needed(script_execute_scaleform)
menu.delete_thread(script_execute_scaleform_thread)
end, nil)
function Load_settings()
local Root = (utils.get_appdata_path("PopstarDevs", "2Take1Menu") .. "\\scripts\\Candy" .. "\\Luaconfig.ini")
if not utils.file_exists(Root) then
menu.notify("未发现已保存的设置", "", 6, RGBAToInt(255, 0, 0, 255))
local file = io.open(Root, "a")
todaysdate = os.date("%d-%m-%y")
file:write(tostring("DateSettingsSaved=" .. todaysdate) .. "\n")
file:close()
menu.notify("已创建默认配置文件!!\n请自定义设置并保存\n然后重新载入脚本", "", 6, RGBAToInt(255, 0, 0, 255))
end
end
local Paths = {}
local Settings = {}
local essentials = {}
local kek_entity = {}
local xml_handler = require("Candy/Lib/Menyoo")
local memory = require("Candy/Lib/Memory")
local natives = require("Candy/Lib/Natives")
local script_func = require("Candy/Lib/Script_Func")
local utilities = require("Candy/Lib/Utils")
local text_func = require("Candy/Lib/Text_Func")
Paths.Root = utils.get_appdata_path("PopstarDevs", "2Take1Menu")
rootPath = utils.get_appdata_path("PopstarDevs", "2Take1Menu")
custum_chat = rootPath .. "\\scripts\\Candy\\Lua_Settings\\chat.txt"
utils.make_dir(Paths.Root .. "\\scripts\\Candy\\Lua_Settings")
Paths.Cfg = Paths.Root .. "\\scripts\\Candy\\Lua_Settings"
Paths.luafiles = Paths.Root .. "\\scripts\\Candy"
Paths.Settings = Paths.Cfg .. "\\Luaconfig.ini"
Settings["DateSettingsSaved"] = ""
Settings["zhoushenbiaoji"] = false
Settings["fantanjiaobenshijian"] = false
Settings["zaijupingbi"] = false
Settings["wutipingbi"] = false
Settings["wudijiance"] = false
Settings["MK2jiance"] = false
Settings["zidonghuixue"] = false
Settings["zidongfuhuo"] = false
Settings["gongjipengyou"] = false
Settings["tianjipaowulengque"] = false
Settings["zaijukuaisukaihuo"] = false
Settings["zaijujiashiqiang"] = false
Settings["kaiqikuaisusheji"] = false
Settings["mingchengzhanshi"] = true
Settings["mingchengzhanshishuban"] = false
Settings["mingchengzhanshihengban"] = true
Settings["guanggaojilanjie"] = true
Settings["dangqianshisu"] = false
Settings["kongxiqiang"] = false
Settings["yunshiqiang"] = false
Settings["shayuqiang"] = false
Settings["yuanzinengzidan"] = false
Settings["miaozhunkongxi"] = false
Settings["aimprotremoveweapon"] = false
Settings["aimprotupn"] = false
Settings["auto_delivery"] = false
Settings["pedpingbi"] = false
Settings["pedshanchu"] = false
Settings["xianshishijian2"] = false
Settings["carshanchu"] = false
Settings["hisplayer"] = false
Settings["Block_MK1"] = false
Settings["Block_M2K"] = false
Settings["FUCK_VEHCAR"] = false
Settings["ceshifanghu32"] = false
Settings["GIFguajian"] = false
Settings["yanhuaqiang"] = false
Settings["AutoRefillAmmo"] = false
Settings["apocalypse_gun"] = false
Settings["yanhuaqiang1"] = false
Settings["yanhuaqiang3"] = false
Settings["colorqiang"] = false
Settings["health_cheat"] = false
Settings["guanggaojilanjie1"] = false
Settings["fast_respawn"] = false
Settings["apocalypse_gun1"] = false
Settings["auto_skip"] = false
Settings["_U_Anti_spectater"] = false
Settings["_U_Chat_trial2"] = false
Settings["auto_fz"] = false
Settings["_U_fuck_spectater"] = false
Settings["yushiwuzheng"] = false
Settings["zhongwentishi"] = false
Settings["players_Join"] = false
Settings["SpeedupMyVeh"] = false
Settings["delete_gun"] = false
Settings["gametime"] = false
Settings["Rockstars"] = false
Settings["New_History"] = false
Settings["GIFzs"] = 30
Settings["GIFX"] = 0.7
Settings["GIFY"] = 0.8
Settings["GIFDAXIAO"] = 1
Settings["GIFKEJIANDU"] = 1
Settings["zhujixulie1"] = 1
Settings["_U_show_notice_x"] = 1
Settings["_U_show_notice_y"] = 1
Settings["_U_show_notice"] = false
Settings["_U_show_notice_r"] = 255
Settings["_U_show_notice_g"] = 255
Settings["_U_show_notice_b"] = 255
Settings["_U_show_notice_max"] = 10
Settings["_U_show_notice_size"] = 30
Settings["strarS_x_type"] = 1
Settings["strarS_y_type"] = 1
Settings["bjshanchu"] = false
Settings["veh_on_water"] = false
Settings["clear_notice"] = false
Settings["check_god"] = false
Settings["zhujixulie_weizhi_YY"] = 1
Settings["zhujixulie_weizhi_XX"] = 1
Settings["DONGJIEPED"] = false
Settings["smoke_colors"] = false
Settings["smoke_delay"] = 1
Settings["vehicle_arms1"] = false
Settings["vehicle_arms2"] = false
Settings["auto_clean"] = false
Settings["Who_looking"] = false
local set_global_i <const> = script.set_global_i
local recovery <const> = 4536533
local playerCharacter <const> = stats.stat_get_int(gameplay.get_hash_key("mpply_last_mp_char"), 0)
local natives <const> = require("Candy.natives2845")
local currentMoney = natives.MONEY.NETWORK_GET_VC_WALLET_BALANCE(playerCharacter)
local moneyEarned = 0
local moneyEarnedPerMinute = 0
local startTime = 0
local wait = false
local joaat <const> = gameplay.get_hash_key
local overlay
----------------------------------------------------------------------
function Print(text)
print(text)
local txt = Cur_Date_Time()
local file = io.open(Paths.Root .. "\\2Take1Menu.log", "a")
io.output(file)
io.write("\n" .. txt .. "\t")
io.write(tostring(text))
io.close()
end
function SaveSettings()
Settings["DateSettingsSaved"] = os.date("%d-%m-%y")
local file = io.open(Paths.Settings, "w")
for k,v in pairs(Settings) do
file:write(tostring(k) .. "=" .. tostring(v) .. "\n")
end
file:close()
end
function LoadSettings()
if not utils.file_exists(Paths.Settings) then
print("No saved settings")
return
end
for line in io.lines(Paths.Settings) do
local separator = line:find("=", 1, true)
if separator then
local key = line:sub(1, separator - 1)
local value = line:sub(separator + 1)
Settings[key] = value
end
end
end
function Load_Settings()
if not utils.file_exists(Paths.Settings) then
return
end
for line in io.lines(Paths.Settings) do
local separator = line:find("=", 1, true)
if separator then
local key = line:sub(1, separator - 1)
local value = line:sub(separator + 1)
if value == string.format("true") then
value = true
elseif value == string.format("false") then
value = false
else value = value
end
Settings[key] = value
end
end
end
local c = {}
local a = {}
local N = {}
local T = {}
local H = {}
local R = {}
local J = {}
local req = {}
local playerlist = {}
local allpeds = {}
local allveh = {}
local allobj = {}
local allpickups = {}
crash_strength = 0
crash_strengtc = 30
setting_crash = {}
invalidpeda = {}
playerlist = {}
playlist = {}
a = a or {...}
friendlist = {}
lll = false
C = {}
CD = 0
c.pC = ped.create_ped
c.host = network.network_is_host
c.pdf = menu.add_player_feature
c.wait = system.wait
c.df = menu.add_feature
c.egec = entity.get_entity_coords
c.ped = player.get_player_ped
c.me = player.player_id
c.random = math.random
c.eser = entity.set_entity_rotation
c.oco = object.create_object
c.vehicle = ped.get_vehicle_ped_is_using
c.navigate = menu.set_menu_can_navigate
c.time = utils.time_ms
c.unload = streaming.set_model_as_no_longer_needed
c.valid = player.is_player_valid
c.sR = streaming.request_model
c.global = script.get_global_i
N.SH = script.get_host_of_this_script
N.sEv = script.trigger_script_event
N.host_kick = network.network_session_kick_player
N.isHost = network.network_is_host
N.sModder = player.set_player_as_modder
V_a = {-1829802492,-1758137366,-1311154784,1939284556,234062309,-482719877,989294410,-82626025,1987142870,-998177792,1323778901,-1291952903,1044193113,-1758137366,-1311154784,989294410,1987142870,-998177792,1323778901,1044193113,2123327359,-1403128555,-1291952903,1939284556,234062309,-482719877,1031562256,819197656,989294410,418536135,917809321,1093792632,-998177792,-313185164,1034187331,1323778901,272929391,960812448,-1134706562,-2120700196,-376434238,408192225,-482719877,-1134706562,-1291952903,-2048333973,-114627507,960812448,-1134706562,-2120700196,-376434238,-1930048799,-1281684762,-1281684762,1824333165,970385471,-42959138,837858166,-1600252419,1181327175,1543134283,-1435527158,-692292317,782665360,-579747861,-1146969353,1542143200,321739290,-212993243,-915704871,-326143852,-899509638,-986944621,349315417,-1685021548,80636076,-227741703,15219735,906642318,-1758137366,2123327359,-1311154784,-1242608589,418536135,1392481335,917809321,1093792632,-998177792,1426219628,1034187331,1663218586,1323778901,2067820283,1939284556,-1291952903,-1216765807,-482719877,1323778901,-1622444098,-313185164,1987142870,-638562243,989294410,819197656,1031562256,-1403128555,2123327359,-591610296,1274868363,-1478704292,2072687711,-674927303,1032823388,-631760477,-1297672541,1591739866,-1757836725,-1089039904,410882957,-1848994066,970385471,410882957,410882957,-1281684762,1075432268,788747387,837858166,-42959138,1543134283}
V_hash_V = {0x9cf21e0f,0xceea3f4b,0xceea3f4b,0xe5a2d6c6,0x2592b5cf,0x2592b5cf,0xB12314E0,0xE5A2D6C6,0xE5A2D6C6,0xB12314E0,0x2592b5cf,0x9cf21e0f}
V_hash_C = {3602674979,-42959138}
V_hash_N = {0x9B22DBAF,0x92991B72}
function get_full_arg_table()
local m = math.random
local a, b = -2147483647, 2147483647
return { m(a, b), m(a, b), m(a, b), m(a, b), m(a, b), m(a, b), m(a, b), m(a, b), m(a, b),
m(a, b), m(a, b), m(a, b), m(a, b), m(a, b), m(a, b), m(a, b), m(a, b), m(a, b), m(a, b),
m(a, b), m(a, b), m(a, b), m(a, b), m(a, b), m(a, b), m(a, b), m(a, b), m(a, b), m(a, b),
m(a, b), m(a, b), m(a, b), m(a, b), m(a, b), m(a, b), m(a, b), m(a, b), m(a, b), m(a, b)}
end
function SECrah(pid)
N.sEv(0xc5bc4c4b, pid, {-72614, 63007, 59027, -12012, -26996, 33399})
N.sEv(0xc5bc4c4b, pid, get_full_arg_table())
N.sEv(767605081, pid, get_full_arg_table())
N.sEv(-1949011582, pid, get_full_arg_table())
N.sEv(-2122716210, pid, get_full_arg_table())
N.sEv(-977515445, pid, get_full_arg_table())
N.sEv(-922075519, pid, get_full_arg_table())
N.sEv(-1975590661, pid, get_full_arg_table())
N.sEv(-1882923979, pid, get_full_arg_table())
N.sEv(-2122716210, pid, get_full_arg_table())
N.sEv(0xF5CB92DB, pid, get_full_arg_table())
N.sEv(0x9DB77399, pid, get_full_arg_table())
N.sEv(0xB0886E20, pid, get_full_arg_table())
N.sEv(0xE6116600, pid, get_full_arg_table())
N.sEv(1975590661, pid, get_full_arg_table())
end
function notify_above_map(message)
ui.notify_above_map(message,"ZERTOTON",15)
end
function tx(message, color, txup)
if txup then
ui.notify_above_map(message,"ZERTOTON",color)
end
end
original_package_path = package.path
package.path = utils.get_appdata_path("PopstarDevs", "").."\\2Take1Menu\\scripts\\Candy\\?.lua"
local essentials
if utils.file_exists(utils.get_appdata_path("PopstarDevs", "").."\\2Take1Menu\\scripts\\Candy\\Configure.lua") then
essentials = require("Configure")
else
menu.notify("文件缺失,请重新安装配置文件", "发生错误", 3, 6)
error("缺失一个文件")
end
local u = {}
local o = {
home = utils.get_appdata_path("PopstarDevs", "").."\\2Take1Menu\\",
lib_path = utils.get_appdata_path("PopstarDevs", "").."\\2Take1Menu\\scripts\\Candy\\",
listeners = {
["player_leave"] = {}
}
}
local toggle = {}
Candy_Menu_VIP = {
toggle = {},
version = "11"
}
setmetatable(Candy_Menu_VIP.toggle, {
__index = function(t, index)
return toggle[index]
end,
__newindex = function()
essentials.log_error("Tried to modify Candy_Menu_VIP.toggle. This table is read-only.")
end
})
local player_history = {
year_parents = {},
month_parents = {},
day_parents = {},
hour_parents = {},
searched_players = {},
players_added_to_history = {},
count = 0
}
local lib_versions = {
"V13"
}
for i, k in pairs({
"History_Players"
}) do
if not utils.dir_exists(o.lib_path..k) then
utils.make_dir(o.lib_path..k)
end
end
for i, k in pairs(
{
"Configure"
}) do
if not utils.file_exists(o.lib_path..k..".lua") then
essentials.msg("文件缺失, 请下载所需文件.", 6, true)
error("您在Libs中缺少一个文件, 请重新安装Candy Menu VIP")
end
local file = io.open(o.home.."scripts\\Candy\\"..k..".lua")
local str = essentials.file(file, "read", "*l")
essentials.file(file, "close")
if not str or str:match(": (.+)") ~= lib_versions[i] then
essentials.msg("文件缺失, 请下载所需文件", 6, true)
error("有一个库文件版本错误, 请重新安装Candy Menu VIP")
end
end
for i, k in pairs({
"players.log"
}) do
if not utils.file_exists(o.lib_path..k) then
local file = io.open(o.lib_path..k, "w+")
essentials.file(file, "close")
end
end
u.new_session_timer = utils.time_ms()
do
local my_pid = player.player_id()
o.listeners["player_leave"]["timer"] = event.add_event_listener("player_leave", function(event)
if my_pid == event.player then
u.new_session_timer = utils.time_ms() + 15000
my_pid = player.player_id()
end
end)
end
function player_history.add_features(parent, rid, ip, name)
if parent.child_count == 0 then
menu.add_feature("复制玩家信息", "action_value_str", parent.id, function(f, pid)
if f.value == 0 then
utils.to_clipboard(rid)
elseif f.value == 1 then
utils.to_clipboard(ip)
elseif f.value == 2 then
utils.to_clipboard(name)
end
end):set_str_data({
"RID",
"IP",
"名字"
})
local seen = {}
for info in essentials.get_file_string("scripts\\Candy\\players.log", "*a"):gmatch("([^\n]*)\n?") do
if info:find("&"..rid.."&", 1, true) then
seen[#seen + 1] = (info:match("<(.+)>") or "").." "..(info:match("!(.+)!") or "")
end
end
menu.add_feature("第一次遇见"..": "..seen[1], "action", parent.id)
if #seen > 1 then
menu.add_feature("最后遇见"..": "..seen[#seen], "action", parent.id)
menu.add_feature("遇到过".." "..#seen.." ".."次 ", "action", parent.id)
else
menu.add_feature("遇到过".." "..#seen.." ".."次 ", "action", parent.id)
end
end
end
function player_history.get_date()
local day_num = tonumber(os.date("%d"))
if day_num == 1 then
day_num = "1st"
elseif day_num == 2 then
day_num = "2nd"
elseif day_num == 3 then
day_num = "3rd"
else
day_num = day_num.."th"
end
local month = os.date("%B").."_".. os.date("%m")
local day = os.date("%A").." "..day_num.." of "..month:match("(.+)_")
local year = os.date("%Y")
local time = os.date("%H").." o'clock"
local date = os.date("%x")
return month, day, year, time, date
end
a.mainmenu = c.df("#FFDB7093#Candy Menu VIP Main","parent",0)
local function Cped(type, hash, pos, dir)
streaming.request_model(hash)
while not streaming.has_model_loaded(hash) do
system.wait(10)
end
local ped = ped.create_ped(type, hash, pos, dir, true, false)
streaming.set_model_as_no_longer_needed(hash)
return ped
end
local function hashmodel(J)
local hash
hash = J
streaming.request_model(hash)
while(not streaming.has_model_loaded(hash))
do
system.wait(0)
end
player.set_player_model(hash)
streaming.set_model_as_no_longer_needed(hash)
return HANDLER_POP
end
function taomocar1(hash, cpid, npc_car,indesx)
pos = player.get_player_coords(cpid)
local offset = v3(0,0,-10)
local rot = v3(0.0,0,0.0)
local carbc = spawn_vehicle(hash,pos,indesx)
network.has_control_of_entity(carbc)
entity.set_entity_visible(carbc,false)
entity.set_entity_god_mode(carbc, true)
network.request_control_of_entity(carbc)
entity.attach_entity_to_entity(carbc, npc_car, 0, offset, rot, true, false, false, 0, true)
end
local function blockfile(TXT)
local file = io.open(rootPath .. "\\scripts\\ini\\block.txt", "w")
io.output(file)
io.write(TXT)
system.wait(50)
io.close()
end
local aX = {
["police_outfit"] = {
["female"] = {
["clothes"] = {{0, 0}, {0, 6}, {0, 14}, {0, 34}, {0, 0}, {0, 25}, {0, 0}, {0, 35}, {0, 0}, {0, 0}, {0, 48}},
["props"] = {{0, 45, 0}, {1, 11, 0}, {2, 4294967295, 0}, {6, 4294967295, -1}, {7, 4294967295, -1}}
},
["male"] = {
["clothes"] = {{0, 0}, {0, 0}, {0, 0}, {0, 35}, {0, 0}, {0, 25}, {0, 0}, {0, 58}, {0, 0}, {0, 0}, {0, 55}},
["props"] = {{0, 46, 0}, {1, 13, 0}, {2, 4294967295, 0}, {6, 4294967295, -1}, {7, 4294967295, -1}}
}
},
["bac_outfit"] = {["textures"] = {}, ["clothes"] = {}, ["prop_text"] = {}, ["prop_ind"] = {}, ["gender"] = nil},
["session_crash"] = {["textures"] = {}, ["clothes"] = {}, ["prop_text"] = {}, ["prop_ind"] = {}}
}
local function appearance()
for i = 1, 11 do
aX["session_crash"]["textures"][i] = ped.get_ped_texture_variation(player.get_player_ped(player.player_id()), i)
aX["session_crash"]["clothes"][i] = ped.get_ped_drawable_variation(player.get_player_ped(player.player_id()), i)
end
local aw = {0, 1, 2, 6, 7}
for az = 1, #aw do
aX["session_crash"]["prop_ind"][az] = ped.get_ped_prop_index(player.get_player_ped(player.player_id()), aw[az])
aX["session_crash"]["prop_text"][az] = ped.get_ped_prop_texture_index(player.get_player_ped(player.player_id()), aw[az])
end
end
local function restore(modhash)
hashmodel(modhash)
system.wait(250)
ped.set_ped_health(player.get_player_ped(player.player_id()), 0)
system.wait(3500)
local cx = aX["session_crash"]["clothes"]
local cy = aX["session_crash"]["textures"]
for i = 1, 11 do
ped.set_ped_component_variation(player.get_player_ped(player.player_id()), i, cx[i], cy[i], 2)
end
local aw = {0, 1, 2, 6, 7}
local ax = aX["session_crash"]["prop_ind"]
local ay = aX["session_crash"]["prop_text"]
for az = 1, #aw do
ped.set_ped_prop_index(player.get_player_ped(player.player_id()), aw[az], ax[az], ay[az], 0)
end
end
function request_model(h, t)
if not h then
return
end
if not streaming.has_model_loaded(h) then
streaming.request_model(h)
local time = utils.time() + t
while not streaming.has_model_loaded(h) and time > utils.time() do
system.wait(5)
end
end
return streaming.has_model_loaded(h)
end
function requestmodel(hash)
streaming.request_model(hash)
while (not streaming.has_model_loaded(hash)) do
c.wait(0)
end
return streaming.has_model_loaded(hash)
end
function modelchange(hash)
requestmodel(hash)
player.set_player_model(hash)
streaming.set_model_as_no_longer_needed(hash)
end
function spawn_vehicle(hash, coords, dir, maxed, god)
request_model(hash, 1000)
if maxed then
entity.set_entity_coords_no_offset(car, coords)
entity.set_entity_heading(car, dir)
if god then
give_godmode(car, true)
end
streaming.set_model_as_no_longer_needed(hash)
return car
else
local car = vehicle.create_vehicle(hash, coords, dir, true, false)
if god then
give_godmode(car, true)
end
streaming.set_model_as_no_longer_needed(hash)
return car
end
end
local function request_model(hash)
local henmss
if tonumber(hash) and streaming.is_model_valid(hash) then
if not streaming.has_model_loaded(hash) then
henmss = true
streaming.request_model(hash)
local timeee = utils.time_ms() + 450
while not streaming.has_model_loaded(hash) and timeee > utils.time_ms() do
system.yield(0)
end
end
return streaming.has_model_loaded(hash), henmss
end
end
local function get_control_of_entity(h, t)
if not h then
return
end
if not network.has_control_of_entity(h) then
network.request_control_of_entity(h)
local time = utils.time_ms() + t
while entity.is_an_entity(h) and not network.has_control_of_entity(h) and time > utils.time_ms() do
system.wait(5)
end
end
return network.has_control_of_entity(h)
end
if menu.is_trusted_mode_enabled() == false then
menu.notify("当前脚本处于未信任模式!")
else
end
function s_coords(i, p)
req.ctrl(i)
entity.set_entity_velocity(i, v3())
entity.set_entity_coords_no_offset(i, p)
end
Load_Settings()
CandyMenu = c.pdf("Candy Menu VIP","parent",0)
crashCrash = c.pdf("崩溃选项","parent",CandyMenu.id)
a.seplayer = c.df("玩家自我选项","parent",a.mainmenu.id)
a.vehicleset = c.df("载具修改选项","parent",a.mainmenu.id)
a.teleport = c.df("传送选项", "parent", a.seplayer.id)
a.onlineplayer = c.df("战局玩家列表","parent",a.mainmenu.id)
a.friendlists = c.df("档案好友列表", "parent", a.mainmenu.id)
a.sessionoption = c.df("全局玩家选项","parent",a.mainmenu.id)
a.yule = c.df("娱乐能力选项","parent",a.mainmenu.id)
a.hisplayer = c.df("历史玩家列表", "parent", a.mainmenu.id)
rwugn = menu.add_feature("任务辅助选项","parent", a.mainmenu.id, function()
end)
a.protoption = c.df("防护检测选项","parent",a.mainmenu.id)
a.qita = c.df("其他更多选项","parent",a.mainmenu.id)
adlanjie123 = menu.add_feature("拦截选项","parent",a.qita.id,function()
end)
egao = c.pdf("恶搞选项","parent",CandyMenu.id)
menu.add_player_feature("天基炮袭击", "action", egao.id, function(feat, pid)
local d = player.get_player_ped(pid)
local pos = player.get_player_coords(pid)
audio.play_sound_from_coord(-1, "ORBITAL_CANNON_FIRE_LASER", pos, 0, true, 10000000000, false)
audio.play_sound_from_coord(-1, "ORBITAL_CANNON_FIRE_LASER", pos, 0, true, 10000000000, true)
system.wait(100)
audio.play_sound_from_coord(-1, "ORBITAL_CANNON_FIRE_EXPLOSION", pos, "DLC_XM_Explosions_Orbital_Cannon", true, 100000000000, false)
audio.play_sound_from_coord(-1, "ORBITAL_CANNON_FIRE_EXPLOSION", pos, "DLC_XM_Explosions_Orbital_Cannon", true, 100000000000, false)
graphics.set_next_ptfx_asset("scr_xm_orbital")
while not graphics.has_named_ptfx_asset_loaded("scr_xm_orbital") do
graphics.request_named_ptfx_asset("scr_xm_orbital")
system.wait(0)
end
graphics.start_networked_particle_fx_non_looped_at_coord("scr_xm_orbital_blast", pos, v3(0, 0, 0), 5, true, true, true)
fire.add_explosion(pos, 59, true, false, 1.5, d)
fire.add_explosion(pos, 60, true, false, 1.8, d)
fire.add_explosion(pos, 62, true, false, 2.0, d)
fire.add_explosion(pos, 52, true, false, 1.0, d)
fire.add_explosion(pos, 50, true, false, 1.0, d)
fire.add_explosion(pos, 29, false, false, 29.0, d)
fire.add_explosion(pos, 29, true, false, 29.0, d)
graphics.start_networked_particle_fx_non_looped_at_coord("scr_xm_orbital_blast", pos, v3(0, 0, 0), 10, true, true, true)
end)
menu.add_player_feature("冲击波袭击", "action", egao.id, function(f, pid)
for i = 5, 30 do
fire.add_explosion(player.get_player_coords(pid) + v3(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2)), 70, true, false, 0.6, player.get_player_ped(pid))
system.wait(math.random(0, 1))
end
end)
function requestmodel(hash)
streaming.request_model(hash)
while (not streaming.has_model_loaded(hash)) do
system.wait(0)
end
return streaming.has_model_loaded(hash)
end
c.pdf("主机崩溃","action",crashCrash.id,function(k,pid)
local deathpos = v3(-16257.853, 10793.688, 893.610)
local pedp = player.get_player_ped(player.player_id())
local mypos = player.get_player_coords(player.player_id())
entity.freeze_entity(pedp,true)
entity.set_entity_coords_no_offset(pedp, deathpos)
system.yield(1000)
entity.freeze_entity(pedp,false)
entity.set_entity_coords_no_offset(pedp,mypos)
menu.notify("Done","2Take1Menu",5,61000)
end)
c.pdf("主机崩溃V2","action",crashCrash.id,function(k,pid)
local deathpos = v3(-6170, 10837, 40)
local pedp = player.get_player_ped(player.player_id())
local mypos = player.get_player_coords(player.player_id())
entity.freeze_entity(pedp,true)
entity.set_entity_coords_no_offset(pedp, deathpos)
system.yield(1000)
entity.freeze_entity(pedp,false)
entity.set_entity_coords_no_offset(pedp,mypos)
end)
kkkbojb = c.pdf("MPED崩溃","action",crashCrash.id,function(feat,pid)
pos = player.get_player_coords(pid)
dune = spawn_vehicle(3602674979,pos,0)
entity.set_entity_god_mode(dune,true)
entity.set_entity_visible(dune,false)
dune1 = spawn_vehicle(0x9cf21e0f,pos,0)
entity.set_entity_god_mode(dune1,true)
entity.set_entity_visible(dune1,false)
barracks = spawn_vehicle(3602674979,pos,0)
entity.set_entity_god_mode(barracks,true)
entity.set_entity_visible(barracks,false)
barracks1 = spawn_vehicle(0xceea3f4b,pos,0)
entity.set_entity_god_mode(barracks1,true)
entity.set_entity_visible(barracks1,false)
dunecar = spawn_vehicle(0xe5a2d6c6,pos,0)
entity.set_entity_god_mode(dunecar,true)
entity.set_entity_visible(dunecar,false)
barracks3 = spawn_vehicle(0x2592b5cf,pos,0)
entity.set_entity_god_mode(barracks3,true)
entity.set_entity_visible(barracks3,false)
barracks31 = spawn_vehicle(0x2592b5cf,pos,0)
entity.set_entity_god_mode(barracks31,true)
entity.set_entity_visible(barracks31,false)
entity.attach_entity_to_entity(barracks3, dunecar, 0, v3(0,0,-0), v3(0,0,0), true, true, false, 0, true)
entity.attach_entity_to_entity(barracks31, dunecar, 0, v3(0,0,-0), v3(0,0,0), true, true, false, 0, true)
entity.attach_entity_to_entity(barracks, dunecar, 0, v3(0,0,-0), v3(0,0,0), true, true, false, 0, true)
entity.attach_entity_to_entity(barracks1, dunecar, 0, v3(0,0,-0), v3(0,0,0), true, true, false, 0, true)
entity.attach_entity_to_entity(dune, dunecar, 0, v3(0,0,-0), v3(0,0,0), true, true, false, 0, true)
entity.attach_entity_to_entity(dune1, dunecar, 0, v3(0,0,-0), v3(0,0,0), true, true, false, 0, true)
car = Cped(26,0x92991B72,pos , 0)
entity.set_entity_god_mode(car, true)
for i = 5 , 1 do
invalidpeda = Cped(26,0x92991B72,pos , 0)
entity.set_entity_god_mode(invalidpeda, true)
entity.attach_entity_to_entity(invalidpeda, car, 0, v3(0,0,-0), v3(0,0,0), true, true, false, 0, true)
end
for i = 8 , 2 do
invalidpeda = Cped(26,0x92991B72,pos , 0)
entity.set_entity_god_mode(invalidpeda, true)
entity.attach_entity_to_entity(invalidpeda, car, 0, v3(0,0,-0), v3(0,0,0), true, true, false, 0, true)
end
for i = 2 , 15 do
invalidpeda = Cped(26,0x92991B72,pos , 0)
entity.set_entity_god_mode(invalidpeda, true)
entity.attach_entity_to_entity(invalidpeda, car, 0, v3(0,0,-0), v3(0,0,0), true, true, false, 0, true)
end
entity.attach_entity_to_entity(car,dunecar, 0, v3(0,0,-0), v3(0,0,0), true, true, false, 0, true)
pedp = player.get_player_ped(pid)
entity.attach_entity_to_entity(dunecar, pedp, 0, v3(0,0,-0), v3(0,0,0), true, true, false, 0, true)
entity.detach_entity(dunecar)
allpeds = ped.get_all_peds()
for i = 1, #allpeds do
pedhash = entity.get_entity_model_hash(allpeds[i])
if pedhash == 0x92991B72 then
entity.delete_entity(allpeds[i])
end
end
menu.notify("Done","Candy Menu VIP",5,61000)
end)
rainbowr = 179
rainbowg = 45
rainbowb = 212
menu.add_player_feature("实体崩溃", "action",crashCrash.id,function(f)
if player.is_player_valid(player.player_id()) then
pedp = player.get_player_ped(pid)
pos = player.get_player_coords(pid)
towtruck = spawn_vehicle(-1323100960, pos,0)
skylift = spawn_vehicle(-692292317, pos,0)
cargobob = spawn_vehicle(4244420235, pos,0)
cargobob2 = spawn_vehicle(4244420235, pos,0)
cargobob1 = spawn_vehicle(4244420235, pos,0)
handler = spawn_vehicle(444583674, pos,0)
print(skylift)
entity.attach_entity_to_entity(cargobob,skylift, 0, v3(0,0,0.2), v3(0,0,0),false, true, false, 0, true)
entity.attach_entity_to_entity(cargobob1,skylift, 0, v3(0,0,-0.2), v3(0,0,0),false, true, false, 0, true)
entity.attach_entity_to_entity(handler,skylift, 0, v3(0,0,0), v3(0,0,0),false, true, false, 0, true)
entity.attach_entity_to_entity(towtruck,skylift, 0, v3(0,0,0), v3(0,0,0),false, true, false, 0, true)
entity.attach_entity_to_entity(cargobob2,towtruck, 0, v3(0,0,0), v3(0,0,0),false, true, false, 0, true)
entity.attach_entity_to_entity(skylift,pedp, 0, v3(0,0,0), v3(0,0,0),false, true, false, 0, true)
end
end)
menu.add_player_feature("HASHOF崩溃", "action",crashCrash.id,function(f)
if player.is_player_valid(player.player_id()) then
local model_hash = player.get_player_model(player.player_id())
local outfit_component_table = {}
local outfit_component_texture_table = {}
local outfit_prop_table = {}
local outfit_prop_texture_table = {}
for i = 0, 11 do
outfit_component_table[i] = ped.get_ped_drawable_variation(player.get_player_ped(player.player_id()), i)
outfit_component_texture_table[i] = ped.get_ped_texture_variation(player.get_player_ped(player.player_id()), i)
end
for i = 0, 2 do
outfit_prop_table[i] = ped.get_ped_prop_index(player.get_player_ped(player.player_id()), i)
outfit_prop_texture_table[i] = ped.get_ped_prop_texture_index(player.get_player_ped(player.player_id()), i)
end
for i = 1, 2 do
local hash = player.get_player_model(player.player_id())
if hash == 0x9C9EFFD8 then
hash2 = 0x705E61F2
else
hash2 = 0x9C9EFFD8
end
utilities.request_model(hash)
utilities.request_model(hash2)
player.set_player_model(hash2)
system.yield(100)
ped.set_ped_health(player.get_player_ped(player.player_id()), 0)
system.yield(100)
ped.resurrect_ped(player.get_player_ped(player.player_id()))
system.yield(300)
player.set_player_model(hash)
system.yield(100)
ped.set_ped_health(player.get_player_ped(player.player_id()), 0)
system.yield(200)
ped.resurrect_ped(player.get_player_ped(player.player_id()))
ped.set_ped_health(player.get_player_ped(player.player_id()), 0)
system.yield(100)
ped.resurrect_ped(player.get_player_ped(player.player_id()))
system.yield(100)
end
system.wait(1000)
player_func.change_player_model(model_hash, nil)
system.wait(100)
for i = 0, 11 do
ped.set_ped_component_variation(player.get_player_ped(player.player_id()), i, outfit_component_table[i], outfit_component_texture_table[i], 0)
end
for i = 0, 2 do
ped.set_ped_prop_index(player.get_player_ped(player.player_id()), i, outfit_prop_table[i], outfit_prop_texture_table[i], 0)
end
menu.notify("Done", Meteor)
else
menu.notify("无效的玩家", Meteor, 3, 211)
end
end)
menu.add_player_feature("NETWORK崩溃", "action",crashCrash.id,function(f)
if player.is_player_valid(pid) then
if network.get_player_player_is_spectating(player.player_id()) == pid or utilities.get_distance_between(player.get_player_ped(player.player_id()), player.get_player_ped(pid)) < 100 then
utilities.request_model(gameplay.get_hash_key("sentinel"))
local vehicle_ = vehicle.create_vehicle(gameplay.get_hash_key("sentinel"), utilities.offset_coords(player.get_player_coords(pid), player.get_player_heading(pid), 5, 1), player.get_player_coords(pid).z, true, false)
network.request_control_of_entity(vehicle_)
vehicle.set_vehicle_mod_kit_type(vehicle_, 0)
vehicle.set_vehicle_mod(vehicle_, 48, 0, false)
system.wait(5000)
utilities.request_control(vehicle_)
entity_func.hard_remove_entity(vehicle_)
menu.notify("Done", Meteor)
else
menu.notify("您必须观察目标或靠近目标才能使用此功能.", Meteor, 5, 211)
end
else
menu.notify("无效玩家.", Meteor, 3, 211)
end
end)
a.astoman = menu.add_feature("超能力", "parent",a.yule.id, function(f)
end)
menu.add_feature("跟踪导弹", "toggle", a.yule.id, function(f)
if f.on then
utilities.request_model(3612858749)
utilities.request_model(1262355818)
guided_missile_object = object.create_object(1262355818, player.get_player_coords(player.player_id()) + v3(0, 0, 20), true, true)
guided_missile_object_vehicle = vehicle.create_vehicle(3612858749, player.get_player_coords(player.player_id()) + v3(0, 0, 20), player.get_player_heading(player.player_id()), true, false)
utilities.request_control_silent(guided_missile_object_vehicle)
utilities.request_control_silent(guided_missile_object)
entity.apply_force_to_entity(guided_missile_object, 3, 0, 0, 0, 0.0, 0.0, 0.0, false, true)
utilities.request_control_silent(guided_missile_object_vehicle)
utilities.request_control_silent(guided_missile_object)
guided_missile_cam = natives.CREATE_CAM_WITH_PARAMS("DEFAULT_SCRIPTED_CAMERA", entity.get_entity_coords(guided_missile_object_vehicle).x, entity.get_entity_coords(guided_missile_object_vehicle).y, entity.get_entity_coords(guided_missile_object_vehicle).z, entity.get_entity_rotation(guided_missile_object_vehicle).x, entity.get_entity_rotation(guided_missile_object_vehicle).y, entity.get_entity_rotation(guided_missile_object_vehicle).z, 70.0, false, false):__tointeger64()
natives.SET_CAM_ACTIVE(guided_missile_cam, true)
natives.RENDER_SCRIPT_CAMS(true, true, 1000, true, true, 0)
natives.ATTACH_CAM_TO_ENTITY(guided_missile_cam, guided_missile_object_vehicle, 0.0, 0.0, 1.0, false)
if network.has_control_of_entity(guided_missile_object) and network.has_control_of_entity(guided_missile_object_vehicle) then
while f.on do
system.yield(0)
natives.SET_CAM_ROT(guided_missile_cam, entity.get_entity_rotation(guided_missile_object_vehicle).x, entity.get_entity_rotation(guided_missile_object_vehicle).y, entity.get_entity_rotation(guided_missile_object_vehicle).z, 2)
natives.REQUEST_ADDITIONAL_COLLISION_AT_COORD(entity.get_entity_coords(guided_missile_object_vehicle).x, entity.get_entity_coords(guided_missile_object_vehicle).y, entity.get_entity_coords(guided_missile_object_vehicle).z)
entity.set_entity_visible(guided_missile_object_vehicle, false)
entity.set_entity_god_mode(guided_missile_object_vehicle, true)
entity.set_entity_collision(guided_missile_object_vehicle, false, false, false)
entity.set_entity_rotation(guided_missile_object, cam.get_gameplay_cam_rot() + v3(180, 0, 0))
entity.set_entity_rotation(guided_missile_object_vehicle, cam.get_gameplay_cam_rot())
vehicle.set_vehicle_forward_speed(guided_missile_object_vehicle, 100)
entity.set_entity_coords_no_offset(guided_missile_object, entity.get_entity_coords(guided_missile_object_vehicle))
local success, float = gameplay.get_ground_z(player.get_player_coords(player.player_id()))
if guided_missile_object and guided_missile_object_vehicle and entity.get_entity_entity_has_collided_with(guided_missile_object) ~= guided_missile_object_vehicle and (entity.has_entity_collided_with_anything(guided_missile_object) or (success and utilities.get_distance_between(player.get_player_coords(player.player_id()), v3(player.get_player_coords(player.player_id()).x, player.get_player_coords(player.player_id()).y, float)) < 0.5)) or not f.on then
fire.add_explosion(entity.get_entity_coords(guided_missile_object), 8, true, false, 0.3, player.get_player_ped(player.player_id()))
fire.add_explosion(entity.get_entity_coords(guided_missile_object), 60, true, false, 0.3, player.get_player_ped(player.player_id()))
if guided_missile_object then
utilities.hard_remove_entity(guided_missile_object)
guided_missile_object = nil
end
if guided_missile_object_vehicle then
utilities.hard_remove_entity(guided_missile_object_vehicle)
guided_missile_object_vehicle = nil
end
if guided_missile_cam then
natives.DESTROY_CAM(guided_missile_cam, false)
natives.RENDER_SCRIPT_CAMS(false, false, 0, true, true, 0)
end
f.on = false
end
if guided_missile_object and guided_missile_object_vehicle and entity.is_entity_in_water(guided_missile_object) then
fire.add_explosion(entity.get_entity_coords(guided_missile_object), 52, true, false, 0.3, player.get_player_ped(player.player_id()))
if guided_missile_object then
utilities.hard_remove_entity(guided_missile_object)
guided_missile_object = nil
end
if guided_missile_object_vehicle then
utilities.hard_remove_entity(guided_missile_object_vehicle)
guided_missile_object_vehicle = nil
end
if guided_missile_cam then
natives.DESTROY_CAM(guided_missile_cam, false)
natives.RENDER_SCRIPT_CAMS(false, false, 0, true, true, 0)
end
f.on = false
end
scope_scaleform = graphics.request_scaleform_movie("REMOTE_SNIPER_HUD")
graphics.begin_scaleform_movie_method(scope_scaleform, "REMOTE_SNIPER_HUD")
graphics.draw_scaleform_movie_fullscreen(scope_scaleform, 255, 255, 255, 255, 4)
graphics.end_scaleform_movie_method(scope_scaleform)
graphics.begin_scaleform_movie_method(script_execute_scaleform, "SHOW_SHARD_WASTED_MP_MESSAGE")
launch_guided_missile_scaleform = graphics.request_scaleform_movie("SUBMARINE_MISSILES")
graphics.begin_scaleform_movie_method(launch_guided_missile_scaleform, "GENERIC_2")
graphics.draw_scaleform_movie_fullscreen(launch_guided_missile_scaleform, 255, 255, 255, 255, 0)
graphics.end_scaleform_movie_method(launch_guided_missile_scaleform)
launch_guided_missile_scaleform_2 = graphics.request_scaleform_movie("DRONE_CAM")
graphics.begin_scaleform_movie_method(launch_guided_missile_scaleform_2, "DRONE_CAM")
graphics.draw_scaleform_movie_fullscreen(launch_guided_missile_scaleform_2, 255, 255, 255, 255, 0)
graphics.end_scaleform_movie_method(launch_guided_missile_scaleform_2)
if guided_missile_object then
natives.LOCK_MINIMAP_POSITION(entity.get_entity_coords(guided_missile_object).x, entity.get_entity_coords(guided_missile_object).y)
end
end
end
end
if not f.on then
if guided_missile_object then
utilities.hard_remove_entity(guided_missile_object)
guided_missile_object = nil
end
if guided_missile_object_vehicle then
utilities.hard_remove_entity(guided_missile_object_vehicle)
guided_missile_object_vehicle = nil
end
if guided_missile_cam then
natives.DESTROY_CAM(guided_missile_cam, false)
natives.RENDER_SCRIPT_CAMS(false, false, 0, true, true, 0)
end
if launch_guided_missile_scaleform then
graphics.set_scaleform_movie_as_no_longer_needed(launch_guided_missile_scaleform)
end
if launch_guided_missile_scaleform_2 then
graphics.set_scaleform_movie_as_no_longer_needed(launch_guided_missile_scaleform_2)
end
guided_missile_object = nil
natives.UNLOCK_MINIMAP_POSITION()
end
end)
menu.add_feature("历史玩家", "action_value_str", a.hisplayer.id, function(f)
if f.value == 0 then
local input, status = essentials.get_input("请输入玩家信息(RID/名称/IP)", "", 128, 0)
if status == 2 then
return
end
input = input:lower()
local str = essentials.get_file_string("scripts\\Candy\\players.log", "*a")
if toggle["Sort player history search from newest to oldest"].on then
str = str:reverse()