Skip to content

Commit dae29ec

Browse files
committed
hotfix
1 parent 38ca4e8 commit dae29ec

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

AddictScript/Addict.lua

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ local gta_version = "v3095"
1313
local dcinv = "fg6Ex4PbkJ"
1414
local dev_mode = false -- Disables stuff like updates [true/false]
1515

16-
local function tunable(value)
17-
return memory.script_global(glob.base + value)
18-
end
19-
2016
-- Add all SE's here for quicker updates
2117
local se = {
2218
tpspread = -1388926377, -- older gta se version
@@ -52,11 +48,18 @@ local glob = {
5248
sekickarg1 = 2657704,
5349
sekickarg2 = 1892703, -- older gta global version
5450
player_bounty = 1835502, -- older gta global version
55-
bounty1 = 2815059, -- older gta global version
51+
bounty1 = 2815059 -- older gta global version
52+
}
53+
54+
local function tunable(value)
55+
return memory.script_global(glob.base + value)
56+
end
57+
58+
local globals = {
5659
nightclub_prices = {
57-
["La Mesa"] = tunable(24838),
58-
["Mission Row"] = tunable(24843),
59-
["Vespucci Canals"] = tunable(24845)
60+
["La Mesa"] = tunable(24838), -- older gta global version
61+
["Mission Row"] = tunable(24843), -- older gta global version
62+
["Vespucci Canals"] = tunable(24845) -- older gta global version
6063
}
6164
}
6265

@@ -2332,7 +2335,7 @@ while nc == nc_owned do
23322335
nc = nc_options.first[math.random(#nc_options.first)]
23332336
end
23342337

2335-
local price = memory.read_int(glob.nightclub_prices[nc])
2338+
local price = memory.read_int(globals.nightclub_prices[nc])
23362339

23372340
if wallet ~= nil and bank ~= nil then
23382341
if wallet + bank < price then

0 commit comments

Comments
 (0)