-
Notifications
You must be signed in to change notification settings - Fork 0
/
MGArcade.lua
82 lines (62 loc) · 1.69 KB
/
MGArcade.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
-- MGARCADE.LUA
-- AUTHOR : ALTAMURENZA
--[[
-------------------------------------
# INSERT IMPORTSCRIPT TO GLOBAL ENV #
-------------------------------------
]]
_G.ImportScript = function(SCRIPT)
while IsStreamingBusy() do
Wait(0)
end
ImportScript(SCRIPT)
if SCRIPT ~= "Test/Missions/RunMissionLib.lua" then
MissionSetup, MissionCleanup, main = nil, nil, nil
end
end
--[[
-----------------------------
# LOAD, EXECUTE, & CLEAN UP #
-----------------------------
]]
dofile(shared.SMAE_LoadFile and "storage/emulated/0/Android/data/com.rockstargames.bully/files/BullyOrig/Scripts/TRAINER/SYSTEM/IMG/"..shared.SMAE_LoadFile..".lur" or "storage/emulated/0/Android/data/com.rockstargames.bully/files/BullyOrig/Scripts/TRAINER/SYSTEM/IMG/ARCADE.lur")
if shared.SMAE_LoadFile == "CREDIT" then
_G.PSH = _G.PlayerSetHealth
_G.PlayerSetHealth = function(HEALTH)
if HEALTH == 200 then
CreateThread("RollCredits")
CameraFade(1000, 0)
Wait(1001)
while true do
Wait(0)
if IsButtonBeingPressed(7, 0) then
MissionSucceed(false, false, false)
end
end
else
_G.PSH(HEALTH)
end
end
_G.RC = _G.RollCredits
_G.RollCredits = function()
_G.RC()
MissionSucceed(false, false, false)
end
_G.MissionSetup = function()
MissionDontFadeIn()
PlayerSetControl(0)
CreditLoadDB()
end
_G.MissionCleanup = function()
PlayerSetControl(1)
CreditUnLoadDB()
_G.PlayerSetHealth = _G.PSH
end
end
shared.SMAE_LoadFile = nil
--[[
---------------------------------------
# REMOVE IMPORTSCRIPT FROM GLOBAL ENV #
---------------------------------------
]]
_G.ImportScript = nil