You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SSV2/includes/frontend/yhv1_ui.lua
+43-27Lines changed: 43 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,13 @@ local HEIST_TYPES = {
35
35
val=31,
36
36
cooldown_name="MPX_SALV23_CFR_COOLDOWN",
37
37
cooldown_gvar="cfr_cd",
38
-
}
38
+
gvar=function(set)
39
+
if (type(set) ~="boolean") then
40
+
returnGVars.features.yim_heists.cfr_cd
41
+
end
42
+
GVars.features.yim_heists.cfr_cd=set
43
+
end,
44
+
},
39
45
},
40
46
{ -- KnoWay
41
47
get_name=function()
@@ -49,6 +55,12 @@ local HEIST_TYPES = {
49
55
val=4,
50
56
cooldown_name="MPX_M25_AVI_MISSION_CD",
51
57
cooldown_gvar="knoway_cd",
58
+
gvar=function(set)
59
+
if (type(set) ~="boolean") then
60
+
returnGVars.features.yim_heists.knoway_cd
61
+
end
62
+
GVars.features.yim_heists.knoway_cd=set
63
+
end,
52
64
},
53
65
},
54
66
{ -- Dr Dre
@@ -63,6 +75,12 @@ local HEIST_TYPES = {
63
75
val=4095,
64
76
cooldown_name="MPX_FIXER_STORY_COOLDOWN",
65
77
cooldown_gvar="dre_cd",
78
+
gvar=function(set)
79
+
if (type(set) ~="boolean") then
80
+
returnGVars.features.yim_heists.dre_cd
81
+
end
82
+
GVars.features.yim_heists.dre_cd=set
83
+
end,
66
84
}
67
85
},
68
86
{ -- Oscar Guzman
@@ -77,6 +95,12 @@ local HEIST_TYPES = {
77
95
val=31,
78
96
cooldown_name="MPX_HACKER24_MFM_COOLDOWN",
79
97
cooldown_gvar="ogfa_cd",
98
+
gvar=function(set)
99
+
if (type(set) ~="boolean") then
100
+
returnGVars.features.yim_heists.ogfa_cd
101
+
end
102
+
GVars.features.yim_heists.ogfa_cd=set
103
+
end,
80
104
},
81
105
opt_info="Complete first mission on Hard first!"
82
106
},
@@ -85,9 +109,6 @@ local HEIST_TYPES = {
85
109
localfunctiondrawBasicTab()
86
110
fori, heistinipairs(HEIST_TYPES) do
87
111
localheist_name=heist.get_name()
88
-
-- It is risky to skip these cooldowns since replaying heists too quickly may get you flagged, so probably best to just check if cooldown is active and disable skipping
89
-
-- If a heist is on cooldown, just do a different one while you wait
90
-
-- TODO: User should have option to skip cooldown anyways, as long as they acknowledge the risk
0 commit comments