-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathElexon 1.72 Beta.lua
More file actions
139 lines (95 loc) · 5.53 KB
/
Elexon 1.72 Beta.lua
File metadata and controls
139 lines (95 loc) · 5.53 KB
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
function MPX()
local ONLINE = stats.get_int("MPPLY_LAST_MP_CHAR")
if ONLINE == 0 then
return "MP0_"
elseif ONLINE == 1 then
return "MP1_"
else
return "MP0_"
end
end
player_male = (ENTITY.GET_ENTITY_MODEL(PLAYER.PLAYER_PED_ID()) == joaat("mp_m_freemode_01"))
player_female = (ENTITY.GET_ENTITY_MODEL(PLAYER.PLAYER_PED_ID()) == joaat("mp_m_freemode_0"))
-- Validate API globals
if not ENTITY then
print(" ENTITY API not found — you might be on an unsupported YimMenu version!")
return
end
FMISSIONC = "fm_mission_controller"
FMISSIONC2020 = "fm_mission_controller_2020"
HISLANDP = "heist_island_planning"
log.info("TCT & Rrocas", "Love you internet people <3")
log.info("Enjoy Elexon :D")
--SWYgeW91IGRlY29kZWQgdGhpcywgeW91wrRyZSBwcm9iYWJseSBjdXJpb3VzLi4gc2hvb3QgbWUgYSBtc2cgb24gZGlzY29yZCBAbmpkZXJnZWlsb21hdA==
------------------------------------------------------------------------------
--[[ Elexon Main Menu Structure ]]--
------------------------------------------------------------------------------
ScriptMainMenu = gui.get_tab("Elexon made by TCC & RROCAS")
ScriptMainMenu:add_text("Elexon 1.72 Beta")
SelfTab = ScriptMainMenu:add_tab("Self Menu") -- Self Menu Tab
recoverymenu = ScriptMainMenu:add_tab("Recovery Menu") -- Recovery Menu Tab
MoneyMenu = recoverymenu:add_tab("Money Methods") -- Recovery Menu -> Money Methods
NightClub = MoneyMenu:add_tab("Nightclub money loop") -- Recovery Menu -> Money Methods -> Nightclub money loop
StatsMenu = recoverymenu:add_tab("Stats Menu") -- Recovery Menu -> Stats Menu
RP_settings = StatsMenu:add_tab("Crew / Rank Editor") -- Recovery Menu -> Stats Menu -> RP Editor
KD_Editor_Tab = StatsMenu:add_tab("KD Editor") -- Recovery Menu -> Stats Menu -> KD Editor
Reports = StatsMenu:add_tab("Report Checker & Editor") -- Recovery Menu -> Stats Menu -> Report Checker & Editor
LatestUnlock = recoverymenu:add_tab("Unlocker Menu") -- Recovery Menu -> Unlocker Menu
MissionEdit = recoverymenu:add_tab("Missions Menu") -- Recovery Menu -> Missions Menu
VehiclesMenu = ScriptMainMenu:add_tab("Vehicle Menu") -- Vehicle Menu
SettingsMenu = ScriptMainMenu:add_tab("Script Settings") -- Settings Tab
------------------------------------------------------------------------------
--[[ Load Included Modules ]]--
------------------------------------------------------------------------------
require("elexon-incl.kd_editor")(KD_Editor_Tab) -- KD Editor
require("elexon-incl.report_editor")(Reports) -- Report Checker & Editor
require("elexon-incl.rank_editor")(RP_settings) -- Crew / Rank Editor
require("elexon-incl.self_menu")(SelfTab) -- Self Menu
require("elexon-incl.money_methods")(recoverymenu, NightClub) -- Money Methods
require("elexon-incl.vehicle_menu")(VehiclesMenu) -- Vehicle Menu
require("elexon-incl.settings")(SettingsMenu) -- Settings Menu
local packed_unlocks = require("elexon-incl.unlocks")
local unlocks_config = require("elexon-incl.unlocks") -- load the unlocks configuration
local stat_unlocks = require("elexon-incl.unlocks2")
------------------------------------------------------------------------------
--[[ Missions Menu (seems unnecessary for the scripts purpose atm) ]]--
------------------------------------------------------------------------------
MissionEdit:add_button("Remove dax fooligan missions", function()
stats.set_int(MPX() .. "XM22JUGGALOWORKCDTIMER", -1)
end)
MissionEdit:add_button("Remove CEO/MC Cooldown", function()
stats.set_int("MPPLY_VIPGAMEPLAYDISABLEDTIMER", 0)
end)
MissionEdit:add_button("Skip yacht missionsS", function()
stats.set_int(MPX() .. "YACHT_MISSION_PROG", 0)
stats.set_int(MPX() .. "YACHT_MISSION_FLOW", 21845)
stats.set_int(MPX() .. "CASINO_DECORATION_GIFT_1", -1)
end)
MissionEdit:add_separator()
-- MP Helper
function mp()
return "MP" .. stats.get_int("MPPLY_LAST_MP_CHAR") .. "_"
end
------------------------------------------------------------------------------
--[[ Unlocker Menu ]]--
------------------------------------------------------------------------------
function unlock_packed_bools(from, to)
for i = from, to do
stats.set_packed_stat_bool(i, true)
-- log.debug("[DEBUG] Unlocking stat ID:", i) -- prints to YimMenu console. commented out to stop spam and clogging of logs
end
end
LatestUnlock:add_button("Unlock Everything", function()
log.debug("[DEBUG] Starting to Unlock Everything")
-- packed bools
for _, range in ipairs(unlocks_config.generic) do
unlock_packed_bools(range.from, range.to)
end
local gender_ranges = player_male and unlocks_config.male or unlocks_config.female
for _, range in ipairs(gender_ranges) do
unlock_packed_bools(range.from, range.to)
end
-- normal stats
stat_unlocks.apply(MPX)
log.debug("[DEBUG] Finished Unlock Everything")
end)