-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPIP-Girl.pluto
6322 lines (5912 loc) · 281 KB
/
PIP-Girl.pluto
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 lust_upDate = {year = 2025, month = 2, day = 2, hour = 6, min = 6, sec = 6}
local script_version = "V."..lust_upDate.year.."."..lust_upDate.month.."."..lust_upDate.day
local startupmsg = "New Year, New Me(ntal issues).\nReport bugs in the discord.\nAsuka Tech on top!"
util.ensure_package_is_installed("lua/auto-updater")
local auto_updater = require("auto-updater")
if not async_http.have_access() then util.toast("U need to allow internet access to download all resources the script needs to work and receive cutting edge updates. <3"); return end
local auto_update_config = {
source_url="https://raw.githubusercontent.com/LeaLangley/PIP-Girl/main/PIP-Girl.pluto",
script_relpath=SCRIPT_RELPATH,
verify_file_begins_with="--",
check_interval=0,
restart_delay=666,
dependencies={
{
name="Asuka_Libiary",
source_url="https://raw.githubusercontent.com/LeaLangley/Asuka_Library/main/Asuka_Lib.pluto",
script_relpath="lib/Asuka_Library/Asuka_Lib.pluto",
check_interval=0,
},
{
name="logo",
source_url="https://raw.githubusercontent.com/LeaLangley/PIP-Girl/main/resources/PIP-Girl/logo.png",
script_relpath="resources/PIP Girl/logo.png",
check_interval=13666,
},
{
name="blacklist",
source_url="https://raw.githubusercontent.com/LeaLangley/PIP-Girl/main/resources/PIP-Girl/Blacklist.json",
script_relpath="resources/PIP Girl/Blacklist.json",
check_interval=0,
},
{
name="read_me.txt",
source_url="https://raw.githubusercontent.com/LeaLangley/PIP-Girl/main/resources/PIP-Girl/Export/read_me.txt",
script_relpath="resources/PIP Girl/Export/read_me.txt",
check_interval=13666,
},
}
}
local function file_exists(path)
local file = io.open(path, "r")
if file then file:close() return true end
return false
end
for auto_update_config.dependencies as dep do
if not file_exists(filesystem.scripts_dir() .. dep.script_relpath) then
auto_updater.run_auto_update(auto_update_config)
break
end
end
local asuka_lib = require("Asuka_Library/asuka_lib")
asuka_lib.asuka_booty = true
local json = require("json")
util.require_natives("3095a", "g")
local data_cfg = {}
local current_gta_version = tonumber(GET_ONLINE_VERSION())
local supported_gta_version = 1.68
resources_dir = filesystem.resources_dir() .. '/PIP Girl/'
store_dir = filesystem.store_dir() .. '/PIP Girl/'
logo = directx.create_texture(resources_dir .. 'logo.png')
if SCRIPT_MANUAL_START or SCRIPT_SILENT_START then
logo_alpha = 0
logo_alpha_incr = 0.01
logo_alpha_thread = util.create_thread(function (thr)
while true do
logo_alpha = logo_alpha + logo_alpha_incr
if logo_alpha > 1 then
logo_alpha = 1
elseif logo_alpha < 0 then
logo_alpha = 0
util.stop_thread()
end
util.yield()
end
end)
logo_thread = util.create_thread(function (thr)
starttime = os.clock()
local alpha = 0
while true do
directx.draw_texture(logo, 0.06, 0.06, 0.5, 0.5, 0.5, 0.5, 0, 1, 1, 1, logo_alpha)
timepassed = os.clock() - starttime
if timepassed > 1 then
logo_alpha_incr = -0.01
end
if logo_alpha == 0 then
util.stop_thread()
end
util.yield()
end
end)
end
local function getMPX()
return 'MP'.. util.get_char_slot() ..'_'
end
local function STAT_GET_INT(Stat)
return util.stat_get_int64(getMPX()..Stat)
end
local function ADD_MP_INDEX(stat)
local Exceptions = {
"MP_CHAR_STAT_RALLY_ANIM",
"MP_CHAR_ARMOUR_1_COUNT",
"MP_CHAR_ARMOUR_2_COUNT",
"MP_CHAR_ARMOUR_3_COUNT",
"MP_CHAR_ARMOUR_4_COUNT",
"MP_CHAR_ARMOUR_5_COUNT",
}
for _, exception in pairs(Exceptions) do
if stat == exception then
return "MP" .. util.get_char_slot() .. "_" .. stat
end
end
if not string.contains(stat, "MP_") and not string.contains(stat, "MPPLY_") then
return "MP" .. util.get_char_slot() .. "_" .. stat
end
return stat
end
local function PIP_STAT_SET_INT(Stat, value)
STAT_SET_INT(util.joaat(ADD_MP_INDEX(Stat)), value, true)
end
local function notify(msg)
util.toast("<[Pip Girl]>: " .. msg, TOAST_CONSOLE)
util.toast("<[Pip Girl]>\n" .. msg)
end
local function notify_cmd(msg)
util.toast("<[Pip Girl]>: " .. msg, TOAST_CONSOLE)
end
local function notify_only(msg)
util.toast("<[Pip Girl]>: " .. msg, TOAST_ABOVE_MAP)
end
local function warnify(msg)
local formattedMsg = string.gsub(msg, "\n", " | ")
chat.send_message("<[Pip Girl]>: " .. formattedMsg, true, true, false)
util.toast("<[Pip Girl]>: " .. msg, TOAST_CONSOLE)
util.toast("<[Pip Girl]>\n" .. msg)
end
local function warnify_net(msg)
local formattedMsg = string.gsub(msg, "\n", " | ")
chat.send_message("<[Pip Girl]>: " .. formattedMsg, true, true, true)
util.toast("<[Pip Girl]>: " .. msg, TOAST_CONSOLE)
util.toast("<[Pip Girl]>\n" .. msg)
end
local function warnify_ses(msg)
local formattedMsg = string.gsub(msg, "\n", " | ")
chat.send_message(formattedMsg, false, true, true)
util.toast("<[Pip Girl]>: " .. msg, TOAST_CONSOLE)
util.toast(msg)
end
local function allow_Join_back(name)
for i = 1, 3 do
util.yield(666)
for menu.ref_by_path("Online>Session>Block Joins>Removed Players"):getChildren() as rat do
if rat:isValid() then
menu.focus(rat)
if rat:isValid() and rat.menu_name == name then
rat:trigger()
end
if rat:isValid() and rat.menu_name == players.get_name(players.user()) then
rat:trigger()
end
end
end
end
end
local function is_modder(pid, bool)
if players.is_marked_as_modder(pid) or players.is_marked_as_modder_or_admin(pid) then
return true
end
if bool then
for players.list_only(false, false, false, false, false, true) as plid do
if plid == pid then
return true
end
end
end
return false
end
local function is_trusted(pid)
for players.list_only(true, true, false, true) as plid do
if plid == pid then
return true
end
end
return false
end
local function is_sc_friend(pid)
for players.list_only(true, true, false, false) as plid do
if plid == pid then
return true
end
end
return false
end
local function orgColor(pid)
return memory.script_global(2648918 + 818 + 44 + 1 + memory.read_int(memory.script_global(2648918 + 818 + 11 + 1 + (memory.read_int(memory.script_global(1886967 + 1 + (pid * 609) + 10))))) * 2 + 1)
end --thanks to galactys
local ceo_color = -1
local function check_CEO_Color()
if ceo_color ~= -1 then
if asuka_lib.transition_state(true) == 1 and NETWORK_IS_PLAYER_ACTIVE(players.user()) then
if players.user() == players.get_script_host() then
if ceo_color ~= players.get_org_colour(players.user()) then
--local fallback_color = 14
--for players.list() as pid do
if players.get_boss(players.user()) ~= -1 then
--if pid ~= players.user() then
-- local pidorgColor = players.get_org_colour(pid)
-- if pidorgColor == ceo_color and not is_modder(pid) and not is_trusted(pid) then
-- if fallback_color == ceo_color then
-- fallback_color = fallback_color - 1
-- end
-- memory.write_int(orgColor(pid), fallback_color)
-- end
--else
memory.write_int(orgColor(players.user()), ceo_color)
--end
--end
end
end
end
end
end
end
local urceoname = ""
local function organization_control(org)
if not NETWORK_IS_ACTIVITY_SESSION() then
if store_org_name:isValid() then
urceoname = menu.get_value(store_org_name)
end
if players.get_boss(players.user()) ~= -1 then
if players.get_org_type(players.user()) == 0 then
if org == "MC" then
menu.trigger_commands("ceotomc")
util.yield(666)
if players.get_org_type(players.user()) == 1 then
if urceoname ~= "" then
menu.trigger_commands("ceoname " .. urceoname)
end
check_CEO_Color()
notify("Turned you into MC President!")
else
notify("Failed to turn you into MC President.")
end
end
else
if org == "CEO" then
menu.trigger_commands("mctoceo")
util.yield(666)
if players.get_org_type(players.user()) == 0 then
if urceoname ~= "" then
menu.trigger_commands("ceoname " .. urceoname)
end
check_CEO_Color()
notify("Turned you into CEO!")
else
notify("Failed to turn you into CEO.")
end
end
end
else
if org == "CEO" then
menu.trigger_commands("ceostart")
util.yield(666)
if players.get_org_type(players.user()) == 0 then
if urceoname ~= "" then
menu.trigger_commands("ceoname " .. urceoname)
end
check_CEO_Color()
notify("Turned you into CEO!")
else
notify("Failed to turn you into CEO.")
end
elseif org == "MC" then
menu.trigger_commands("mcstart")
util.yield(666)
if players.get_org_type(players.user()) == 1 then
if urceoname ~= "" then
menu.trigger_commands("ceoname " .. urceoname)
end
check_CEO_Color()
notify("Turned you into MC President!")
else
notify("Failed to turn you into MC President.")
end
end
end
else
notify("Cant Register as "..org.." while in missions.")
end
end
local function start_script(name)
if asuka_lib.transition_state(true) == 1 then
if IS_PAUSE_MENU_ACTIVE() then
notify("Close any open Game Menu first!")
return
end
REQUEST_SCRIPT(name)
repeat util.yield_once() until HAS_SCRIPT_LOADED(name)
START_NEW_SCRIPT(name, 5000)
SET_SCRIPT_AS_NO_LONGER_NEEDED(name)
end
end
local function IS_HELP_MSG_DISPLAYED(label)
BEGIN_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED(label)
return END_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED(0)
end
local function IS_TEXT_DISPLAYED(text) -- trying to be good :sob:
BEGIN_TEXT_COMMAND_IS_MESSAGE_DISPLAYED(text)
return END_TEXT_COMMAND_IS_MESSAGE_DISPLAYED()
end
--local handle_ptr = memory.alloc(13*8)
--local function pid_to_handle(pid)
-- if pid then
-- NETWORK_HANDLE_FROM_PLAYER(pid, handle_ptr, 13)
-- return handle_ptr
-- end
-- return nil
--end
local function find_in_table(tbl, value)
for i, v in ipairs(tbl) do
if v == value then
return i
end
end
return nil
end
local function contains(tbl, value)
for ipairs(tbl) as v do
if v == value then
return true
end
end
return false
end
local function getEntryByValue(tbl, value)
for ipairs(tbl) as entry do
if entry == value then
return entry
end
end
end
local request_control = entities.request_control
local function thunderForMin(min)
if asuka_lib.transition_state(true) == 1 then
menu.trigger_commands("thunderon")
local tempNotifyThunder = true
if menu.get_state(menu.ref_by_path("Online>Session>Thunder Weather>Notify On Request")) == "On" then
tempNotifyThunder = true
menu.set_state(menu.ref_by_path("Online>Session>Thunder Weather>Notify On Request"), "Off")
end
notify("Thunder starts.")
local startTimestamp = os.time()
while os.time() - startTimestamp < min * 60 do
local remainingTime = min - math.floor((os.time() - startTimestamp) / 60)
if remainingTime == 1 then
notify("Thunder will stop in 1 minute.")
else
notify("Thunder will stop in "..remainingTime.." min..")
end
util.yield(60000)
end
notify("Thunder stops.")
if tempNotifyThunder then
menu.trigger_commands("thundernotify off")
end
menu.trigger_commands("thunderoff")
end
end
local streetNamePtr = memory.alloc_int()
local crossingRoadPtr = memory.alloc_int()
local function get_Street_Names(x, y, z)
local playerPosition
if x and y and z then
playerPosition = {x = x, y = y, z = z}
else
playerPosition = players.get_position(players.user())
end
GET_STREET_NAME_AT_COORD(playerPosition.x, playerPosition.y, playerPosition.z, streetNamePtr, crossingRoadPtr)
local zoneNameRaw = GET_NAME_OF_ZONE(playerPosition.x, playerPosition.y, playerPosition.z)
local streetNameInt = memory.read_int(streetNamePtr)
local crossingRoadInt = memory.read_int(crossingRoadPtr)
local streetName = ""
local crossingName = ""
zoneName = util.get_label_text(zoneNameRaw)
if streetNameInt ~= 0 then
streetName = util.get_label_text(streetNameInt)
end
if crossingRoadInt ~= 0 then
crossingName = util.get_label_text(crossingRoadInt)
end
return {
zoneName = zoneName,
streetName = streetName,
crossingName = crossingName
}
end
local function Wait_for_transitionState()
local ses_cod = asuka_lib.get_session_code()
while asuka_lib.transition_state(true) ~= 1 and ses_cod == asuka_lib.get_session_code() do
util.yield(666)
end
players.dispatch_on_join()
end
local in_orb_room = {}
local sussy_god = {}
local set_passive = {}
local ghost_modder = {}
local function set_as_illusion(pid, tbl, state)
if is_trusted(pid) and tbl ~= in_orb_room then
in_orb_room[pid] = nil
sussy_god[pid] = nil
set_passive[pid] = nil
ghost_modder[pid] = nil
SET_REMOTE_PLAYER_AS_GHOST(pid, false)
else
if state then
if not tbl[pid] then
SET_REMOTE_PLAYER_AS_GHOST(pid, true)
tbl[pid] = true
end
else
tbl[pid] = nil
local playerInOtherTables = false
for ipairs({in_orb_room, sussy_god, set_passive, ghost_modder}) as otherTbl do
if otherTbl ~= tbl then
if otherTbl[pid] then
playerInOtherTables = true
break
end
end
end
if not playerInOtherTables then
SET_REMOTE_PLAYER_AS_GHOST(pid, false)
end
end
end
end
local function StrategicKick(pid, rid)
if asuka_lib.player_exist(pid) and pid ~= players.user() and menu.player_root(pid):isValid() then
local name = players.get_name(pid)
if not rid then
rid = players.get_rockstar_id(pid)
end
if name ~= players.get_name(players.user()) and rid == players.get_rockstar_id(pid) then
menu.trigger_commands("ghostplayer " .. name)
menu.trigger_commands("blocksync " .. name .. " on")
util.yield()
if players.get_host() ~= pid then
if asuka_lib.transition_state(true) ~= 1 then
Wait_for_transitionState()
else
if not is_trusted(players.get_host()) then
menu.trigger_commands("timeout " .. name .. " on")
menu.trigger_commands("desync " .. name .. " on")
util.yield()
menu.trigger_commands("loveletterkick " .. name)
else
menu.trigger_commands("kick " .. name)
end
end
else
if is_modder(players.get_host(), true) then
menu.trigger_commands("desync " .. name .. " on")
else
menu.trigger_commands("kick " .. name)
end
end
end
end
end
local function healthyInternet(pid)
if NETWORK_GET_AVERAGE_PACKET_LOSS(pid) < 6 and NETWORK_GET_AVERAGE_LATENCY(pid) < 125 then
return true
else
return false
end
end
local function worthToUnstuck(pid)
if asuka_lib.player_exist(pid) and asuka_lib.is_loading(pid) and healthyInternet(pid) then
return true
else
return false
end
end
local function get_ScriptHost()
local requesting_SH = os.time() + 6
menu.trigger_commands("scripthost")
while players.get_script_host() ~= players.user() do
util.yield(13)
if players.get_script_host() == players.user() then
break
end
if os.time() > requesting_SH then
break
end
end
end
local function sc_block(rid)
if not util.sc_is_blocked(rid) then
util.sc_block(rid)
end
end
local function remove_pop_multiplier(sphereID)
if sphereID and DOES_POP_MULTIPLIER_AREA_EXIST(sphereID) then
REMOVE_POP_MULTIPLIER_AREA(sphereID, true)
end
return nil
end
local function create_pop_multiplier(sphereID, pedPOP, vehPOP)
if not sphereID then
remove_pop_multiplier(13)
sphereID = ADD_POP_MULTIPLIER_SPHERE(0.0, 0.0, 0.0, 19666, pedPOP, vehPOP, false, true)
end
if not DOES_POP_MULTIPLIER_AREA_EXIST(sphereID) then
remove_pop_multiplier(13)
sphereID = ADD_POP_MULTIPLIER_SPHERE(0.0, 0.0, 0.0, 19666, pedPOP, vehPOP, false, true)
end
return sphereID
end
local function selfSafe()
if menu.get_state(menu.ref_by_path("Self>Immortality")) == "On" then
return true
end
if players.is_godmode(players.user()) then
return true
end
if players.get_vehicle_model(players.user()) == -32878452 or players.get_vehicle_model(players.user()) == -42959138 or players.get_vehicle_model(players.user()) == -1600252419 then
if asuka_lib.get_number_of_passengers(GET_VEHICLE_PED_IS_IN(players.user_ped(), true)) > 1 then
return true
end
end
return false
end
local function SuperClean(ignoreMission)
local ct = 0
menu.trigger_commands("deleterope")
util.yield(13)
for pairs(entities.get_all_vehicles_as_handles()) as ent do
if asuka_lib.does_entity_exist(ent) then
local driver = GET_PED_IN_VEHICLE_SEAT(ent, -1)
if not IS_PED_A_PLAYER(driver) then
if DECOR_GET_INT(ent, "Player_Vehicle") == 0 then
if not ignoreMission or (ignoreMission and not IS_ENTITY_A_MISSION_ENTITY(ent)) then
entities.delete(ent)
ct += 1
end
end
end
end
end
for entities.get_all_peds_as_pointers() as ent do
ct += 1
end
for entities.get_all_objects_as_pointers() as ent do
ct += 1
end
for entities.get_all_pickups_as_pointers() as ent do
ct += 1
end
local temp_storage = {}
for i, clear_thing in ipairs(menu.get_children(menu.ref_by_path("World>Inhabitants>Clear Area"))) do
if i > 1 then
temp_storage[clear_thing] = menu.get_value(clear_thing)
end
if i > 2 then
menu.set_value(clear_thing, false)
end
end
util.yield(13)
menu.trigger_commands("clearproximity 1000.00")
menu.trigger_commands("clearobjects on")
menu.trigger_commands("clearpeds on")
menu.trigger_commands("clearpickups on")
if ignoreMission then
menu.trigger_commands("clearnomission on")
end
util.yield(13)
menu.trigger_commands("cleararea")
for path, value in pairs(temp_storage) do
menu.set_value(path, value)
end
notify("Done " .. ct .. "'ish entities removed!")
end
local function mmi_claim_all_vehicles(special_vehicle, special_cords)
local interior_timeout = os.time()
while not players.is_visible(players.user()) or NETWORK_IS_PLAYER_FADING(players.user()) do
util.yield(666)
if interior_timeout - os.time() > 666 then
break
end
end
if players.is_visible(players.user()) then
local personal_vehicle = entities.get_user_personal_vehicle_as_handle()
local personal_vehicle_id = nil
local personal_vehicle_pos = nil
local personal_vehicle_rot = nil
local personal_vehicle_driver = false
if asuka_lib.does_entity_exist(personal_vehicle) then
personal_vehicle_id = DECOR_GET_INT(personal_vehicle, "PV_Slot")
personal_vehicle_pos = GET_ENTITY_COORDS(personal_vehicle)
personal_vehicle_rot = GET_ENTITY_ROTATION(personal_vehicle, 2)
if asuka_lib.is_user_driving_vehicle(personal_vehicle) then
personal_vehicle_driver = true
end
end
for menu.get_children(menu.ref_by_path("Vehicle>Personal Vehicles")) as persoanl_vehicle do
for persoanl_vehicle.command_names as personal_vehicle_command do
if personal_vehicle_command ~= "findpv" and personal_vehicle_command ~= "saveallpvs" then
menu.trigger_commands(personal_vehicle_command.."request")
end
CLEAR_ALL_HELP_MESSAGES()
end
end
if special_vehicle then
personal_vehicle_id = special_vehicle
end
if special_cords then
personal_vehicle_pos = special_cords
if not personal_vehicle_rot then
personal_vehicle_rot = v3.new(0.0, 0.0, 0.0)
end
end
if personal_vehicle_id then
if asuka_lib.does_entity_exist(entities.get_user_personal_vehicle_as_handle()) then
menu.trigger_commands("returnpv")
asuka_lib.delete_entity(entities.get_user_personal_vehicle_as_handle())
end
menu.trigger_commands("pv"..personal_vehicle_id.."request")
local request_timeout = os.time()
while not asuka_lib.does_entity_exist(entities.get_user_personal_vehicle_as_handle()) do
CLEAR_ALL_HELP_MESSAGES()
util.yield(666)
if request_timeout - os.time() > 13 then
break
end
end
util.yield(1013)
personal_vehicle = entities.get_user_personal_vehicle_as_handle()
if asuka_lib.does_entity_exist(personal_vehicle) and personal_vehicle_pos and DECOR_GET_INT(personal_vehicle, "PV_Slot") == personal_vehicle_id then
request_control(personal_vehicle)
SET_ENTITY_COORDS_NO_OFFSET(personal_vehicle, personal_vehicle_pos.x, personal_vehicle_pos.y, personal_vehicle_pos.z, true, true, true)
SET_ENTITY_ROTATION(personal_vehicle, personal_vehicle_rot.x, personal_vehicle_rot.y, personal_vehicle_rot.z, 2, true)
if special_cords then
PLACE_OBJECT_ON_GROUND_OR_OBJECT_PROPERLY(personal_vehicle)
end
if personal_vehicle_driver then
SET_PED_INTO_VEHICLE(players.user_ped(), personal_vehicle, -1)
end
end
end
end
end
menu.divider(menu.my_root(), script_version)
local PIP_Girl = menu.list(menu.my_root(), 'PIP Girl', {}, 'Personal Information Processor Girl.', function(); end)
menu.focus(menu.ref_by_path("Stand>Lua Scripts>"..SCRIPT_NAME..">PIP Girl"))
local PIP_Girl_APPS = menu.list(PIP_Girl, 'PIP Girl Apps', {}, 'Personal Information Processor Girl apps.', function(); end)
local Stimpak = menu.list(menu.my_root(), 'Stimpak', {}, 'Take a breath.', function(); end)
local Vehicle = menu.list(menu.my_root(), 'Vehicle', {}, 'Drive pretty and nice.', function(); end)
local Outfit = menu.list(menu.my_root(), 'Outfit', {}, 'Look pretty and nice.', function(); end)
local Combat = menu.list(menu.my_root(), 'Combat', {}, 'Very combat today.', function(); end)
local Game = menu.list(menu.my_root(), 'Game', {}, 'Very gaming today.', function(); end)
local Session = menu.list(menu.my_root(), 'Online', {}, '.enilnO', function(); end)
local SessionManager = menu.list(Session, 'Session Manager', {}, '.enilnO', function(); end)
local Settings = menu.list(menu.my_root(), 'Settings/Misc', {}, 'Basement.', function(); end)
local Credits = menu.list(Settings, 'Credits', {}, '<3', function(); end)
menu.action(PIP_Girl_APPS, "Master Control Terminal App", {}, "Your master control terminal.", function()
organization_control("CEO")
start_script("apparcadebusinesshub")
end)
menu.action(PIP_Girl_APPS, "Nightclub App", {}, "Your nightclub screen.", function()
organization_control("CEO")
start_script("appbusinesshub")
end)
menu.action(PIP_Girl_APPS, "Bunker App", {}, "Your bunker screen.", function()
organization_control("CEO")
start_script("appbunkerbusiness")
end)
menu.action(PIP_Girl_APPS, "Touchscreen Terminal App", {}, "Your Terrorbyte screen.", function()
organization_control("CEO")
start_script("apphackertruck")
end)
menu.action(PIP_Girl_APPS, "Air Cargo App", {}, "Your air cargo screen.", function()
organization_control("CEO")
start_script("appsmuggler")
end)
menu.action(PIP_Girl_APPS, "The Open Road App", {}, "Your MC management screen.", function()
organization_control("MC")
start_script("appbikerbusiness")
end)
menu.action(PIP_Girl_APPS, "The Agency App", {}, "Your agency screen.", function()
organization_control("CEO")
start_script("appfixersecurity")
end)
menu.action(PIP_Girl_APPS, "The Avenger App", {}, "Your avenger screen.", function()
organization_control("CEO")
start_script("appavengeroperations")
end)
menu.action(PIP_Girl_APPS, "The Bail Office App", {}, "Your Bail Office screen.", function()
organization_control("CEO")
start_script("appbailoffice")
end)
menu.action(PIP_Girl_APPS, "Darnell Bros Garment Factory App", {}, "Your Darnell Bros Garment Factory screen.", function()
organization_control("CEO")
start_script("apphackerden")
end)
menu.action(PIP_Girl_APPS, "The Internet App", {}, "Your internet screen.", function()
start_script("appinternet")
end)
menu.action(PIP_Girl_APPS, "(Unstuck) Unstuck after starting a sale.", {}, "If you use one of the screens above and start a sale, you could get stuck.\nPerform an Suicide to unstuck.", function()
menu.trigger_commands('ewo')
end)
local function fillUpEverything()
menu.trigger_commands("refillhealth")
menu.trigger_commands("refillarmour")
menu.trigger_commands("fillinventory")
menu.trigger_commands("fillammo")
menu.trigger_commands("clubpopularity 100")
menu.trigger_commands("removebounty")
end
local function CayoBasics()
fillUpEverything()
PIP_STAT_SET_INT("H4_MISSIONS", -1)
PIP_STAT_SET_INT("H4CNF_APPROACH", -1)
PIP_STAT_SET_INT("H4CNF_BS_ENTR", 63)
PIP_STAT_SET_INT("H4CNF_BS_GEN", 126975)
PIP_STAT_SET_INT("H4CNF_BS_ABIL", -1)
PIP_STAT_SET_INT("H4CNF_WEAPONS", 2)
PIP_STAT_SET_INT("H4CNF_WEP_DISRP", 3)
PIP_STAT_SET_INT("H4CNF_ARM_DISRP", 3)
PIP_STAT_SET_INT("H4CNF_HEL_DISRP", 3)
PIP_STAT_SET_INT("H4CNF_BOLTCUT", 4424)
PIP_STAT_SET_INT("H4CNF_UNIFORM", 5256)
PIP_STAT_SET_INT("H4CNF_GRAPPEL", 5156)
PIP_STAT_SET_INT("H4CNF_TROJAN", 5)
PIP_STAT_SET_INT("H4_PROGRESS", 131055)
PIP_STAT_SET_INT("H4_PLAYTHROUGH_STATUS", 100)
end
local message_bad_rep = menu.ref_by_path("Online>Session>Block Joins>Message>Your Account Has A Bad Reputation")
local message_vip_slot = menu.ref_by_path("Online>Session>Block Joins>Message>Not Intended Session")
local PIP_Girl_Heist = menu.list(PIP_Girl, 'PIP Girl Heists (FSL!)', {}, 'I only consider it save if used with FSL, its intended use is for FSL, if u still use it without FSL u r going to risk.\nPersonal Information Processor Girl Heist Presets.', function(); end)
menu.action(PIP_Girl_Heist, 'Cayo 1 Player Preset (!)', {}, "", function (click_type)
menu.show_warning(PIP_Girl, click_type, 'DO ONLY USE WITH FSL, Continue ?', function()
if asuka_lib.transition_state(true) == 1 then
CayoBasics()
PIP_STAT_SET_INT("H4LOOT_CASH_I", 4227216)
PIP_STAT_SET_INT("H4LOOT_CASH_I_SCOPED", 4227216)
PIP_STAT_SET_INT("H4LOOT_CASH_C", 20)
PIP_STAT_SET_INT("H4LOOT_CASH_C_SCOPED", 20)
PIP_STAT_SET_INT("H4LOOT_COKE_I", 131336)
PIP_STAT_SET_INT("H4LOOT_COKE_I_SCOPED", 131336)
PIP_STAT_SET_INT("H4LOOT_COKE_C", 0)
PIP_STAT_SET_INT("H4LOOT_COKE_C_SCOPED", 0)
PIP_STAT_SET_INT("H4LOOT_GOLD_I", 0)
PIP_STAT_SET_INT("H4LOOT_GOLD_I_SCOPED", 0)
PIP_STAT_SET_INT("H4LOOT_GOLD_C", 192)
PIP_STAT_SET_INT("H4LOOT_GOLD_C_SCOPED", 192)
PIP_STAT_SET_INT("H4LOOT_WEED_I", 1067010)
PIP_STAT_SET_INT("H4LOOT_WEED_I_SCOPED", 1067010)
PIP_STAT_SET_INT("H4LOOT_WEED_C", 0)
PIP_STAT_SET_INT("H4LOOT_WEED_C_SCOPED", 0)
PIP_STAT_SET_INT("H4LOOT_PAINT", 9)
PIP_STAT_SET_INT("H4LOOT_PAINT_SCOPED", 9)
local randomTarget = math.random(1, 4)
if randomTarget == 1 then
PIP_STAT_SET_INT("H4LOOT_CASH_V", 29886)
PIP_STAT_SET_INT("H4LOOT_COKE_V", 59772)
PIP_STAT_SET_INT("H4LOOT_GOLD_V", 79696)
PIP_STAT_SET_INT("H4LOOT_PAINT_V", 59772)
PIP_STAT_SET_INT("H4LOOT_WEED_V", 39848)
PIP_STAT_SET_INT("H4CNF_TARGET", 5) -- Panther
warnify("You'r Cayo Target is the a Panther Statue. >:D")
end
if randomTarget == 2 then
PIP_STAT_SET_INT("H4LOOT_CASH_V", 304886)
PIP_STAT_SET_INT("H4LOOT_COKE_V", 609772)
PIP_STAT_SET_INT("H4LOOT_GOLD_V", 813029)
PIP_STAT_SET_INT("H4LOOT_PAINT_V", 609772)
PIP_STAT_SET_INT("H4LOOT_WEED_V", 406514)
PIP_STAT_SET_INT("H4CNF_TARGET", 0) -- Tequilla
warnify("You'r Cayo Target is the Sinsimito Tequilla. :S")
end
if randomTarget == 3 then
PIP_STAT_SET_INT("H4LOOT_CASH_V", 277386)
PIP_STAT_SET_INT("H4LOOT_COKE_V", 554772)
PIP_STAT_SET_INT("H4LOOT_GOLD_V", 739696)
PIP_STAT_SET_INT("H4LOOT_PAINT_V", 554772)
PIP_STAT_SET_INT("H4LOOT_WEED_V", 369848)
PIP_STAT_SET_INT("H4CNF_TARGET", 1) -- Ruby
warnify("You'r Cayo Target is a Ruby Necklace. :3")
end
if randomTarget == 4 then
PIP_STAT_SET_INT("H4LOOT_CASH_V", 194886)
PIP_STAT_SET_INT("H4LOOT_COKE_V", 389772)
PIP_STAT_SET_INT("H4LOOT_GOLD_V", 519696)
PIP_STAT_SET_INT("H4LOOT_PAINT_V", 389772)
PIP_STAT_SET_INT("H4LOOT_WEED_V", 259848)
PIP_STAT_SET_INT("H4CNF_TARGET", 3) -- Pink
warnify("You'r Cayo Target is a Pink Diamond. *.*")
end
end
end, function()
notify("Aborted.")
end, true)
end)
menu.action(PIP_Girl_Heist, 'Cayo 2 Player 50/50 Preset (!)', {}, "", function (click_type)
menu.show_warning(PIP_Girl, click_type, 'DO ONLY USE WITH FSL, Continue ?', function()
if asuka_lib.transition_state(true) == 1 then
CayoBasics()
PIP_STAT_SET_INT("H4LOOT_CASH_I", 4227216)
PIP_STAT_SET_INT("H4LOOT_CASH_I_SCOPED", 4227216)
PIP_STAT_SET_INT("H4LOOT_CASH_C", 16)
PIP_STAT_SET_INT("H4LOOT_CASH_C_SCOPED", 16)
PIP_STAT_SET_INT("H4LOOT_COKE_I", 131336)
PIP_STAT_SET_INT("H4LOOT_COKE_I_SCOPED", 131336)
PIP_STAT_SET_INT("H4LOOT_COKE_C", 0)
PIP_STAT_SET_INT("H4LOOT_COKE_C_SCOPED", 0)
PIP_STAT_SET_INT("H4LOOT_GOLD_I", 0)
PIP_STAT_SET_INT("H4LOOT_GOLD_I_SCOPED", 0)
PIP_STAT_SET_INT("H4LOOT_GOLD_C", 204)
PIP_STAT_SET_INT("H4LOOT_GOLD_C_SCOPED", 204)
PIP_STAT_SET_INT("H4LOOT_WEED_I", 1067010)
PIP_STAT_SET_INT("H4LOOT_WEED_I_SCOPED", 1067010)
PIP_STAT_SET_INT("H4LOOT_WEED_C", 0)
PIP_STAT_SET_INT("H4LOOT_WEED_C_SCOPED", 0)
PIP_STAT_SET_INT("H4LOOT_PAINT", 9)
PIP_STAT_SET_INT("H4LOOT_PAINT_SCOPED", 9)
local randomTarget = math.random(1, 4)
if randomTarget == 1 then
PIP_STAT_SET_INT("H4LOOT_CASH_V", 306136)
PIP_STAT_SET_INT("H4LOOT_COKE_V", 612272)
PIP_STAT_SET_INT("H4LOOT_GOLD_V", 816363)
PIP_STAT_SET_INT("H4LOOT_PAINT_V", 612272)
PIP_STAT_SET_INT("H4LOOT_WEED_V", 408181)
PIP_STAT_SET_INT("H4CNF_TARGET", 5) -- Panther
warnify("You'r Cayo Target is the a Panther Statue. >:D")
end
if randomTarget == 2 then
PIP_STAT_SET_INT("H4LOOT_CASH_V", 443636)
PIP_STAT_SET_INT("H4LOOT_COKE_V", 887272)
PIP_STAT_SET_INT("H4LOOT_GOLD_V", 1183029)
PIP_STAT_SET_INT("H4LOOT_PAINT_V", 887272)
PIP_STAT_SET_INT("H4LOOT_WEED_V", 591514)
PIP_STAT_SET_INT("H4CNF_TARGET", 0) -- Tequilla
warnify("You'r Cayo Target is the Sinsimito Tequilla. :S")
end
if randomTarget == 3 then
PIP_STAT_SET_INT("H4LOOT_CASH_V", 429886)
PIP_STAT_SET_INT("H4LOOT_COKE_V", 859772)
PIP_STAT_SET_INT("H4LOOT_GOLD_V", 1146363)
PIP_STAT_SET_INT("H4LOOT_PAINT_V", 859772)
PIP_STAT_SET_INT("H4LOOT_WEED_V", 573181)
PIP_STAT_SET_INT("H4CNF_TARGET", 1) -- Ruby
warnify("You'r Cayo Target is a Ruby Necklace. :3")
end
if randomTarget == 4 then
PIP_STAT_SET_INT("H4LOOT_CASH_V", 388636)
PIP_STAT_SET_INT("H4LOOT_COKE_V", 777272)
PIP_STAT_SET_INT("H4LOOT_GOLD_V", 1036363)
PIP_STAT_SET_INT("H4LOOT_PAINT_V", 777272)
PIP_STAT_SET_INT("H4LOOT_WEED_V", 518181)
PIP_STAT_SET_INT("H4CNF_TARGET", 3) -- Pink
warnify("You'r Cayo Target is a Pink Diamond. *.*")
end
end
end, function()
notify("Aborted.")
end, true)
end)
menu.action(PIP_Girl_Heist, 'Cayo 3 Player 30/35/35 Preset (!)', {}, "", function (click_type)
menu.show_warning(PIP_Girl, click_type, 'DO ONLY USE WITH FSL, Continue ?', function()
if asuka_lib.transition_state(true) == 1 then
CayoBasics()
PIP_STAT_SET_INT("H4LOOT_CASH_I", 4227216)
PIP_STAT_SET_INT("H4LOOT_CASH_I_SCOPED", 4227216)
PIP_STAT_SET_INT("H4LOOT_CASH_C", 16)
PIP_STAT_SET_INT("H4LOOT_CASH_C_SCOPED", 16)
PIP_STAT_SET_INT("H4LOOT_COKE_I", 131336)
PIP_STAT_SET_INT("H4LOOT_COKE_I_SCOPED", 131336)
PIP_STAT_SET_INT("H4LOOT_COKE_C", 0)
PIP_STAT_SET_INT("H4LOOT_COKE_C_SCOPED", 0)
PIP_STAT_SET_INT("H4LOOT_GOLD_I", 0)
PIP_STAT_SET_INT("H4LOOT_GOLD_I_SCOPED", 0)
PIP_STAT_SET_INT("H4LOOT_GOLD_C", 207)
PIP_STAT_SET_INT("H4LOOT_GOLD_C_SCOPED", 207)
PIP_STAT_SET_INT("H4LOOT_WEED_I", 1067010)
PIP_STAT_SET_INT("H4LOOT_WEED_I_SCOPED", 1067010)
PIP_STAT_SET_INT("H4LOOT_WEED_C", 0)
PIP_STAT_SET_INT("H4LOOT_WEED_C_SCOPED", 0)
PIP_STAT_SET_INT("H4LOOT_PAINT", 12)
PIP_STAT_SET_INT("H4LOOT_PAINT_SCOPED", 12)
local randomTarget = math.random(1, 4)
if randomTarget == 1 then
PIP_STAT_SET_INT("H4LOOT_CASH_V", 370486)
PIP_STAT_SET_INT("H4LOOT_COKE_V", 740973)
PIP_STAT_SET_INT("H4LOOT_GOLD_V", 987965)
PIP_STAT_SET_INT("H4LOOT_PAINT_V", 740973)
PIP_STAT_SET_INT("H4LOOT_WEED_V", 493982)
PIP_STAT_SET_INT("H4CNF_TARGET", 5) -- Panther
warnify("You'r Cayo Target is the a Panther Statue. >:D")
end
if randomTarget == 2 then
PIP_STAT_SET_INT("H4LOOT_CASH_V", 443636)
PIP_STAT_SET_INT("H4LOOT_COKE_V", 887272)
PIP_STAT_SET_INT("H4LOOT_GOLD_V", 1183029)
PIP_STAT_SET_INT("H4LOOT_PAINT_V", 887272)
PIP_STAT_SET_INT("H4LOOT_WEED_V", 591514)
PIP_STAT_SET_INT("H4CNF_TARGET", 0) -- Tequilla
warnify("You'r Cayo Target is the Sinsimito Tequilla. :S")
end
if randomTarget == 3 then
PIP_STAT_SET_INT("H4LOOT_CASH_V", 452986)
PIP_STAT_SET_INT("H4LOOT_COKE_V", 905973)
PIP_STAT_SET_INT("H4LOOT_GOLD_V", 1207964)
PIP_STAT_SET_INT("H4LOOT_PAINT_V", 905973)
PIP_STAT_SET_INT("H4LOOT_WEED_V", 603982)
PIP_STAT_SET_INT("H4CNF_TARGET", 1) -- Ruby
warnify("You'r Cayo Target is a Ruby Necklace. :3")
end