-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathminigamehack.lua
More file actions
297 lines (256 loc) · 20.2 KB
/
minigamehack.lua
File metadata and controls
297 lines (256 loc) · 20.2 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
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
---@diagnostic disable: lowercase-global
-- MS Virtual Key Codes: https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
local minigame_button = { code = 0x2E, name = "[DEL]" }
---@return string
local function GetBuildNumber()
local pBnum = memory.scan_pattern("8B C3 33 D2 C6 44 24 20"):add(0x24):rip()
return pBnum:get_string()
end
local function IsOnline()
return network.is_session_started() and
not script.is_active("maintransition")
end
local TARGET_BUILD <const> = "3725.0"
local CURRENT_BUILD <const> = GetBuildNumber()
local WM_KEYUP <const> = 0x0101
local WM_SYSKEYUP <const> = 0x0105
local local_H3_hack_1 = 53132 -- (1.72 b3725) -- [FILE: fm_mission_controller.c | REGEX: "func_.*?\(&.Local_.*?, &.Local_.*?\[.Local_.*?\[.*?Local_.*?\].f_27.*?\], false, joaat\("heist"\), Global_.*?.f_1\);"] 2 outcomes, top one
local local_H3_hack_2 = 54198 -- (1.72 b3725) -- [FILE: fm_mission_controller.c | REGEX: "func_.*?\(&.Local_.*?, &.Local_.*?\[.Local_.*?\[.*?Local_.*?\].f_27.*?\], false, joaat\("heist"\), Global_.*?.f_1\);"] 2 outcomes, bottom one
local local_H3_hack_1_p = 2865 -- (1.72 b3725) -- [FILE: am_mp_arc_cab_manager.c | REGEX: "func_.*?\(&.Local_.*?, &\(.Local_.*?.f_.*?\), false, joaat\("practice"\), 0\);"]
local local_H3_hack_2_p = 3862 -- (1.72 b3725) -- [FILE: am_mp_arc_cab_manager.c | REGEX: "func_.*?\(&.Local_.*?, &\(.Local_.*?.f_729\), 4, -1, false\);"] //case 1
local local_H4_hack = 27103 -- (1.72 b3725) -- [FILE: fm_mission_controller.c | REGEX: "func_.*?\(&.Local_.*?, &.Local_.*?\[func_.*?\(.*?\) /\*2\*/\], .*?, joaat\("heist"\), Global_.*?.f_1\);"]
---@param s script_util
local function minigame_hack(s)
-- All casino fingerprints and keyboard access control
if script.is_active("fm_mission_controller_2020") then
locals.set_int("fm_mission_controller_2020", 9984 + 24, 7) -- (1.72 b3725) // regex: if .*?\(?Local_.*?.f_280, 13\)\)
locals.set_int("fm_mission_controller_2020", 1005 + 135, 3) -- (1.72 b3725) Pass_Remote -- case 3: if .?!func_20\(&\(.?Local_1...?\.f_85\)\)\)
locals.set_int("fm_mission_controller_2020", 30947, 6) -- (1.72 b3725) -- Perico drainage port grille cutting -- `switch (iLocal_29810) { case 0: ... else { HUD::DISPLAY_HELP_TEXT_THIS_FRAME("UT_WELD_PROMPT", true); }`
locals.set_float("fm_mission_controller_2020", 32187 + 3, 100) -- (1.72 b3725) Perico plasma cutting // regex: if \(NETWORK::NETWORK_DOES_NETWORK_ID_EXIST\(.Local.*?.f_1\)
locals.set_int("fm_mission_controller_2020", 1250, 2) -- (1.72 b3725) Insurance office task (Bottom Dollar Bail Office Mission) GRAPHICS::DRAW_SPRITE("MPHotwire", "failed" // regex: if \(.?Local_.*? != 4\)
-- voltlab Complete immediately
locals.set_int(
"fm_mission_controller_2020", 1748, -- (1.72 b3725) // regex: .?Local_.*? = Global_.*?.f_.*?.f_10; (regex + match whole word)
locals.get_int("fm_mission_controller_2020", 1749) -- (1.72 b3725) -- Local_1744 +1 or regex search: if \(.Local_.*? == iLocal_.*?\)\n.*?AUDIO
) -- (1.72 b3725) -- voltlab The actual value and the target value are always consistent
locals.set_int("fm_mission_controller_2020", 1750, 3) -- (1.72 b3725) Three lines have been connected -- Local_1745 +1 or regex search: if \(.?Local_.*? >= 2\)\n.*?\{\n.*?if \(.Local_.*? <= (the one where >= 2 is)
if locals.get_int("fm_mission_controller_2020", 32161) == 3 then -- Perico password box -- (1.72 b3725) -- if \(.?Local_.*?.f_.*?\[.*?\] == .*?Local_.*? && .?Local_.*? > 0\)
locals.set_int("fm_mission_controller_2020", 32162, 2) -- Three sets of passwords have been entered -- (1.72 b3725) case 3:
locals.set_float("fm_mission_controller_2020", 32162 + 1 + 1,
locals.get_int("fm_mission_controller_2020", 32162 + 1 + 1 + 1)) -- (1.72 b3725) -- Make the password that has been input is the same as the goal
locals.set_float("fm_mission_controller_2020", 32162 + 1 + 1 + 2,
locals.get_int("fm_mission_controller_2020", 32162 + 1 + 1 + 1 + 2)) -- (1.72 b3725) -- Make the password that has been input is the same as the goal
locals.set_float("fm_mission_controller_2020", 32162 + 1 + 1 + 4,
locals.get_int("fm_mission_controller_2020", 32162 + 1 + 1 + 1 + 4)) -- (1.72 b3725) -- Make the password that has been input is the same as the goal
PAD.SET_CONTROL_VALUE_NEXT_FRAME(2, 237, 1.0) -- Confirm Password
end
local_H4_hack_v = locals.get_int("fm_mission_controller_2020", local_H4_hack) -- Perico finger clone
if (local_H4_hack_v & (1 << 0)) == 0 then
local_H4_hack_v = local_H4_hack_v ~ (1 << 0)
locals.set_int("fm_mission_controller_2020", local_H4_hack, local_H4_hack_v)
end
end
if script.is_active("fm_mission_controller") then
-- patch for WINIP -----
locals.set_int("fm_mission_controller", 167, 0) -- (1.72 b3725) AUDIO::PLAY_SOUND_FRONTEND(uLocal_167[0], "HACKING_COUNTDOWN_IP_FIND", 0, true);
locals.set_int("fm_mission_controller", 168, 0) -- (1.72 b3725) func_...?\("H_USE_PC8", -1\);
locals.set_int("fm_mission_controller", 183, 7) -- (1.72 b3725) // regex: if \(.?Local_.*? == 5 \|\| .?Local_.*? == 6\)
-------------------------
locals.set_int("fm_mission_controller", 1296 + 135, 3) -- (1.72 b3725) case 3 Pass_Remote // regex: if \(\.?Local_.*?.f_135 != 5\)
locals.set_int("fm_mission_controller", 11821 + 24, 7) -- (1.72 b3725) CIRC_COMP // regex: if \(!IS_BIT_SET\(.Local_.*?.f_.*?, 25\)\)
-- Automatic drilling
locals.set_float("fm_mission_controller", 10105 + 11, 1) -- (1.72 b3725) Bank drilling case 0: // regex: if \(.?Local_.*?.f_3 == -1\) // .?Local_.*?.f_3 = AUDIO::GET_SOUND_ID(); // if \(!ENTITY::IS_ENTITY_ATTACHED\(\S+\) && iLocal_\d+\.f_\d+ > 0\.08f\)
locals.set_int("fm_mission_controller", 10149 + 2, 8) -- (1.72 b3725) Casino vault door drilling DLC_HEIST3\HEIST_FINALE_LASER_DRILL case 8 // regex: else if \(.?Local_.*?\.f_7 == .*?Local_.*?\.f_37\)
-- Casino fingerprint access control
local_H3_hack_1_v = locals.get_int("fm_mission_controller", local_H3_hack_1)
if (local_H3_hack_1_v & (1 << 0)) == 0 then
local_H3_hack_1_v = local_H3_hack_1_v ~ (1 << 0)
locals.set_int("fm_mission_controller", local_H3_hack_1, local_H3_hack_1_v)
end
local_H3_hack_2_v = locals.get_int("fm_mission_controller", local_H3_hack_2)
if (local_H3_hack_2_v & (1 << 0)) == 0 then
local_H3_hack_2_v = local_H3_hack_2_v ~ (1 << 0)
locals.set_int("fm_mission_controller", local_H3_hack_2, local_H3_hack_2_v)
end
-- Casino double keycards
locals.set_int("fm_mission_controller", 62430, 5) -- (1.72 b3725) AUDIO::PLAY_SOUND_FROM_ENTITY(-1, "Keycard_Fail", obParam0, "DLC_HEISTS_BIOLAB_FINALE_SOUNDS", true, 10);
-- Doomsday 1-Server Group (Heist2-Mission1-Prep3:SERVER FARM) GRAPHICS::DRAW_SPRITE("MPHotwire", "failed"
locals.set_int("fm_mission_controller", 1570, 2) -- (1.72 b3725) -- regex: AUDIO::SET_VARIABLE_ON_SOUND\(.?Local_....?, "Damage", .*?Local_....?\); switch \(.*?Local_....?\)
end
if script.is_active("am_mp_arc_cab_manager") then -- Casino fingerprint access control-exercise
local_H3_hack_1_p_v = locals.get_int("am_mp_arc_cab_manager", local_H3_hack_1_p)
if (local_H3_hack_1_p_v & (1 << 0)) == 0 then
local_H3_hack_1_p_v = local_H3_hack_1_p_v ~ (1 << 0)
locals.set_int("am_mp_arc_cab_manager", local_H3_hack_1_p, local_H3_hack_1_p_v)
end
local_H3_hack_2_p_v = locals.get_int("am_mp_arc_cab_manager", local_H3_hack_2_p)
if (local_H3_hack_2_p_v & (1 << 0)) == 0 then
local_H3_hack_2_p_v = local_H3_hack_2_p_v ~ (1 << 0)
locals.set_int("am_mp_arc_cab_manager", local_H3_hack_2_p, local_H3_hack_2_p_v)
end
end
-- all voltlab
--[[
if (.?Local_...? == .?Local_...?)
{
AUDIO::PLAY_SOUND_FRONTEND\(-1, "All_Connected_Correct", .*?Param1->f_...?, true\);
}
]]
if script.is_active("fm_content_island_heist") then
locals.set_int("fm_content_island_heist", 791, locals.get_int("fm_content_island_heist", 792)) -- (1.72 b3725) // regex: AUDIO::PLAY_SOUND_FRONTEND\(-1, "All_Connected_Correct", .*?Param1->f_...?, true\); -- voltlab The actual value and the target value are always consistent
locals.set_int("fm_content_island_heist", 793, 3) -- (1.72 b3725) Three lines have been connected // regex: if \(func_.*?() && .*?Local_...? > 0\)
locals.set_int("fm_content_island_heist", 10224 + 24, 7) -- (1.72 b3725) // regex: .?Local_1....?\.f_....? = .?Local_...?;
end
if script.is_active("fm_content_vehrob_prep") then
locals.set_int("fm_content_vehrob_prep", 572, locals.get_int("fm_content_vehrob_prep", 573)) -- (1.72 b3725) //regex: AUDIO::PLAY_SOUND_FRONTEND\(-1, "All_Connected_Correct", .?Param1->f_...?, true\); -- voltlab The actual value and the target value are always consistent
locals.set_int("fm_content_vehrob_prep", 574, 3) -- (1.72 b3725) Three lines have been connected // regex: if \(func_.*?() && .*?Local_...? > 0\)
locals.set_int("fm_content_vehrob_prep", 9297 + 24, 7) -- (1.72 b3725) // regex: .*?Local_....?\.f_....? = .*?Local_....?\.f_....?;
end
if script.is_active("am_mp_arc_cab_manager") then
locals.set_int("am_mp_arc_cab_manager", 480, locals.get_int("am_mp_arc_cab_manager", 481)) -- (1.72 b3725) // regex: AUDIO::PLAY_SOUND_FRONTEND\(-1, "All_Connected_Correct", .*?Param1->f_...?, true\); -- voltlabThe actual value and the target value are always consistent
locals.set_int("am_mp_arc_cab_manager", 482, 3) -- (1.72 b3725) Three lines have been connected // regex: if \(func_.*?() && .*?Local_...? > 0\)
end
-- All collected data Evil the firewall cracking
if script.is_active("fm_content_vehrob_casino_prize") then
locals.set_int("fm_content_vehrob_casino_prize", 1070 + 135, 3) -- (1.72 b3725) case 3 Pass_Remote // regex: switch \(.?Local_....?\.f_135\)
end
if script.is_active("fm_content_business_battles") then
locals.set_int("fm_content_business_battles", 4216 + 24, 7) -- (1.72 b3725) // regex: .?Local_....?\.f_...? = .?Local_....?\.f_...?;
end
--mp2024_02 DLC mission1_The_Black_Box_File
if script.is_active("am_mp_hotwire") then
locals.set_int("am_mp_hotwire", 303, 2) --(1.72 b3725) GRAPHICS::DRAW_SPRITE("MPHotwire", "failed"
end
--mp2024_02 DLC mission2_The_Brute_Force_File (also for mission4_The_Project_Breakaway_File_final)
if script.is_active("word_hack") then
locals.set_int("word_hack", 49 + 53, 5) --(1.72 b3725) // MISC::NETWORK_SET_SCRIPT_IS_SAFE_FOR_NETWORK_GAME(); // "MPWordHack_Sprites", "WM_Popup_Complete" --func_1(&uScriptParam_0, &Global_1981119, &iLocal_49, &uLocal_106); &iLocal_49 - switch (iParam1->f_53) - case 5
end
--mp2024_02 DLC mission3_The_Fine_Art_File
if script.is_active("circuitblockhack") then
locals.set_int("circuitblockhack", 53 + 9, 2) --(1.72 b3725) AUDIO::PLAY_SOUND_FRONTEND(-1, "Success", "DLC_24-2_Hack_Circuit_Board", true);
end
if script.is_active("fm_content_hacker_house_finale") then --fingerprint clone
locals.set_int("fm_content_hacker_house_finale", 6023 + 1, 5) --(1.72 b3725) iLocal_6023.f_1011[iParam0 /*5*/] = iLocal_6023.f_1011[iParam0 /*5*/] + 1;
end
--mp2024_02 DLC mission4_The_Project_Breakaway_File
local_mp2024_02_m4 = 5190 -- (1.72 b3725) -- func_9013(&Local_5097, 5, 5, 10, 10, 8, 10, 0, 0, 0, 1, 1, 0, 0, 60000, 1, 1, 0, 0, bVar0, -1); --HUD::HIDE_SCRIPTED_HUD_COMPONENT_THIS_FRAME(19); --AUDIO::PLAY_SOUND_FRONTEND(-1, "Hack_Success", "DLC_HEIST_BIOLAB_PREP_HACKING_SOUNDS", true);
local_mp2024_02_m4_v = locals.get_int("fm_content_hacker_whistle_prep", local_mp2024_02_m4)
if (local_mp2024_02_m4_v & (1 << 26)) == 0 then
local_mp2024_02_m4_v = local_mp2024_02_m4_v ~ (1 << 26)
locals.set_int("fm_content_hacker_whistle_prep", local_mp2024_02_m4, local_mp2024_02_m4_v)
end
-- int* iParam0, int iParam1, int iParam2, int iParam3, int iParam4, var uParam5, var uParam6, int iParam7, bool bParam8, bool bParam9, bool bParam10, bool bParam11, bool bParam12, bool bParam13, int iParam14, int iParam15, bool bParam16, bool bParam17, bool bParam18, bool bParam19, bool bParam20, bool bParam21
local minigamelocaltable = {
[1] = { script_name = "agency_heist3b", minigame_local = 6210 }, -- (1.72 b3725) -- case 4: if (CUTSCENE::CAN_SET_EXIT_STATE_FOR_REGISTERED_ENTITY("Michael", 0)) -- func_809(&Local_6210, 5, 5, 50, 10, 8, 0, 0, 0, 0, 1, 1, 0, 0, 60000, 0, 1, 0, 0, 0, -1);
[2] = { script_name = "business_battles_sell", minigame_local = 456 }, -- (1.72 b3725) -- case 1: if \(func_....?\(.*?\) && HUD::HAS_ADDITIONAL_TEXT_LOADED\(3\)\)
[3] = { script_name = "fm_content_business_battles", minigame_local = 4216 }, -- (1.72 b3725) -- .?Local_....?\.f_...? = .?Local_....?\.f_...?;
[4] = { script_name = "fm_content_island_heist", minigame_local = 10224 }, -- (1.72 b3725) -- .?Local_1....?\.f_....? = .?Local_...?;
[5] = { script_name = "fm_content_vehrob_casino_prize", minigame_local = 7852 + 2 }, -- (1.72 b3725) -- .?Local_....?\.f_...? = .?Local_....?\.f_...?; switch \(.?Local_....?\.f_....?\.f_.?\[.?Param0 /\*32\*/\]\.f_..?\)
[6] = { script_name = "fm_content_vehrob_police", minigame_local = 7736 }, -- (1.72 b3725) -- .?Local_....?\.f_...? = .?Local_....?\.f_...?; switch \(.?Local_....?\.f_....?\.f_.?\[.?Param0 /\*32\*/\]\.f_..?\)
[7] = { script_name = "fm_content_vehrob_prep", minigame_local = 9297 }, -- (1.72 b3725) -- .?Local_....?\.f_...? = .?Local_....?\.f_...?; switch \(.?Local_....?\.f_....?\.f_.?\[.?Param0 /\*32\*/\]\.f_..?\)
[8] = { script_name = "fm_content_vip_contract_1", minigame_local = 7620 }, -- (1.72 b3725) -- .?Local_....?\.f_...? = .?Local_....?\.f_...?; switch \(.?Local_....?\.f_....?\.f_.?\[.?Param0 /\*32\*/\]\.f_..?\)
[9] = { script_name = "fm_mission_controller_2020", minigame_local = 30163 }, -- (1.72 b3725) -- if \(!.*?\(.?Local_.*?, 1\) && !.*?\(.?Local_.....?\.f_1, 1\)\)
[10] = { script_name = "fm_mission_controller", minigame_local = 9815 }, -- (1.72 b3725) -- func_.....?\(&.?Local_9...?, .*?, 1, .*?\);
[11] = { script_name = "gb_cashing_out", minigame_local = 426 }, -- (1.72 b3725) -- if \(func_....?\(.*?\) && HUD::HAS_ADDITIONAL_TEXT_LOADED\(3\)\)
[12] = { script_name = "gb_gunrunning_defend", minigame_local = 2286 }, -- (1.72 b3725) -- if \(func_....?\(.*?\) && HUD::HAS_ADDITIONAL_TEXT_LOADED\(3\)\)
[13] = { script_name = "gb_sightseer", minigame_local = 466 }, -- (1.72 b3725) -- if \(func_....?\(.*?\) && HUD::HAS_ADDITIONAL_TEXT_LOADED\(3\)\)
}
--[12] = {script_name = "gb_casino_heist", minigame_local = }, --Global_2737317
--[12] = {script_name = "gb_casino", minigame_local = }, --Global_2737317
--[12] = {script_name = "gb_gangops", minigame_local = }, --Global_2737317
--[12] = {script_name = "gb_gunrunning", minigame_local = }, --Global_2737317 NO IDEA WHAT THIS IS, to be either fixed or removed by maintainer.
--[12] = {script_name = "gb_infiltration", minigame_local = }, --Global_2737317
--[12] = {script_name = "gb_smuggler", minigame_local = }, --Global_2737317
--[0] = {script_name = "business_battles", minigame_local = }, --Global_2737317
for i = 1, 13 do
if script.is_active(minigamelocaltable[i].script_name) then
minigame_tmp_v = locals.get_int(minigamelocaltable[i].script_name, minigamelocaltable[i].minigame_local) -- WINBRUTE
if (minigame_tmp_v & (1 << 9)) == 0 then
minigame_tmp_v = minigame_tmp_v ~ (1 << 9)
locals.set_int(minigamelocaltable[i].script_name, minigamelocaltable[i].minigame_local, minigame_tmp_v)
end
end
if script.is_active(minigamelocaltable[i].script_name) then
minigame_tmp_v = locals.get_int(minigamelocaltable[i].script_name, minigamelocaltable[i].minigame_local) -- WINIP
if (minigame_tmp_v & (1 << 18)) == 0 then
minigame_tmp_v = minigame_tmp_v ~ (1 << 18)
locals.set_int(minigamelocaltable[i].script_name, minigamelocaltable[i].minigame_local, minigame_tmp_v)
end
end
if script.is_active(minigamelocaltable[i].script_name) then
minigame_tmp_v = locals.get_int(minigamelocaltable[i].script_name, minigamelocaltable[i].minigame_local) -- Biolab 条形上下浮动对准中间 的小游戏 -- "Hack_Success", "DLC_HEIST_BIOLAB_PREP_HACKING_SOUNDS"
if (minigame_tmp_v & (1 << 26)) == 0 then
minigame_tmp_v = minigame_tmp_v ~ (1 << 26)
locals.set_int(minigamelocaltable[i].script_name, minigamelocaltable[i].minigame_local, minigame_tmp_v)
end
end
if script.is_active(minigamelocaltable[i].script_name) then
minigame_tmp_v = locals.get_int(minigamelocaltable[i].script_name, minigamelocaltable[i].minigame_local) -- Biolab 条形上下浮动对准中间 的小游戏 -- "Hack_Success", "DLC_HEIST_BIOLAB_PREP_HACKING_SOUNDS"
if (minigame_tmp_v & (1 << 28)) == 0 then
minigame_tmp_v = minigame_tmp_v ~ (1 << 28)
locals.set_int(minigamelocaltable[i].script_name, minigamelocaltable[i].minigame_local, minigame_tmp_v)
end
end
end
local minigame_tmp_v2 = globals.get_int(2731604) -- (1.72 b3725) -- gb_casino_heist func.*?\(&Global_27.....?, "BBHACK_YET".*?\);
if (minigame_tmp_v2 & (1 << 9)) == 0 then
minigame_tmp_v2 = minigame_tmp_v2 ~ (1 << 9)
end
if (minigame_tmp_v2 & (1 << 18)) == 0 then
minigame_tmp_v2 = minigame_tmp_v2 ~ (1 << 18)
end
if (minigame_tmp_v2 & (1 << 26)) == 0 then
minigame_tmp_v2 = minigame_tmp_v2 ~ (1 << 26)
end
globals.set_int(2738536, minigame_tmp_v2)
-- Stash house safe
-- Credits: ShinyWasabi's Daily Collectibles https://github.com/YimMenu-Lua/DailyCollectibles
if script.is_active("fm_content_stash_house") then
for i = 0, 2 do
local safe_code = locals.get_int("fm_content_stash_house", 144 + 22 + (1 + (i * 2)) + 1) -- (1.72 b3725) -- iLocal_\d+\.f_\d+\[func_\d+\(\) /\*2\*/\] = iLocal_\d+\.f_\d+\[func_\d+\(\) /\*2\*/\] \+ .?Param.?; -- if \(.?Local_...?\.f_48 && func_....?\(&\(.?Local_...?\.f_50\), 2000, .*?\)\)
locals.set_float("fm_content_stash_house", 144 + 22 + (1 + (i * 2)), safe_code)
end
s:sleep(250)
PAD.SET_CONTROL_VALUE_NEXT_FRAME(2, 235, 1.0)
s:sleep(250)
PAD.SET_CONTROL_VALUE_NEXT_FRAME(2, 235, 1.0)
s:sleep(250)
PAD.SET_CONTROL_VALUE_NEXT_FRAME(2, 237, 1.0)
end
end
gui.get_tab("GUI_TAB_NETWORK"):add_imgui(function()
ImGui.Spacing()
ImGui.SeparatorText("Minigame Hack")
if CURRENT_BUILD ~= TARGET_BUILD then
ImGui.Text("Minigame Hack is outdated.")
return
end
if not IsOnline() then
ImGui.Text("Unavailable in single player.")
return
end
if ImGui.Button("Instant Hack") then
script.run_in_fiber(function(mgh)
minigame_hack(mgh)
end)
end
if ImGui.IsItemHovered() then
ImGui.SetTooltip(
string.format(
"TIP: You can also press %s to use Minigame Hack without opening the menu.",
minigame_button.name
)
)
end
end)
if CURRENT_BUILD == TARGET_BUILD then
event.register_handler(menu_event.Wndproc, function(_, msg, wParam, _)
if (msg == WM_KEYUP) or (msg == WM_SYSKEYUP) then
if (wParam == minigame_button.code) then
script.run_in_fiber(function(mgh)
minigame_hack(mgh)
end)
end
end
end)
end