Skip to content

Commit e1c20e6

Browse files
authored
hotfix
1 parent 7b4dbfa commit e1c20e6

1 file changed

Lines changed: 15 additions & 12 deletions

File tree

AddictScript/Addict.lua

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ util.require_natives("natives-1663599433")
88
guidedMissile = require "ToxTool"
99

1010
-- Add all Globals here for quicker updates
11-
globals = {
12-
{check, 78689},
13-
{pv_slot, 2359296 + 1 + (0 * 5568) + 681 + 2},
11+
global_list = {
12+
check = 78689,
13+
pv_slot = 2359296 + 1 + (0 * 5568) + 681 + 2,
14+
15+
orbi = 1969112
1416
}
1517

1618
local addict = menu
17-
local addict_version = 1.38
19+
local addict_version = 1.39
1820
local dev_mode = false -- Disables stuff like Updates [true/false]
1921

2022
local github = addict.list(addict.my_root(), "Updates", {"addictupdates"})
@@ -142,6 +144,7 @@ function()
142144
---------------------------------------------------------------------------------
143145
addict.divider(Credits, "Great Coders <3")
144146
---------------------------------------------------------------------------------
147+
addict.action(Credits, "Blacklight", {}, "Created Addict Installer :).", function() end)
145148
addict.action(Credits, "Unseemly", {}, "Great coder wouldn't even have an auto updater or certain mods fixed if it wasn't for this guy <3.", function() end)
146149
addict.action(Credits, "notderpaul", {}, "Great coder helped with code, security and testing :).", function() end)
147150
addict.action(Credits, "Cystal", {}, "Very smart coder helped with mods I gave up on.", function() end)
@@ -177,7 +180,7 @@ function()
177180
addict.action(Credits, "Acjoker", {}, "", function() end)
178181
addict.action(Credits, "Tox1cEssent1als", {}, "", function() end)
179182
addict.action(Credits, "(0)Lens", {}, "", function() end)
180-
addict.action(Credits, "Fuck the Stand staff tho.", {}, "", function() end)
183+
addict.action(Credits, "Fuck the Stand staff tho.", {}, "", function() end)
181184
---------------------------------------------------------------------------------
182185

183186
local translations = {}
@@ -1667,7 +1670,7 @@ function BitClear(value, bit)
16671670
end
16681671

16691672
addict.action(Mors_Mutual, "Add Insurance", {"addins"}, "Insures your vehicle for free.", function()
1670-
veh = memory.script_global(1586488 + 1 + (memory.read_int(pv_slot) * 142) + 103)
1673+
veh = memory.script_global(1586488 + 1 + (memory.read_int(global_list.pv_slot) * 142) + 103)
16711674
bitfield = memory.read_int(veh)
16721675
memory.write_int(veh, bitfield | 0xC)
16731676
end)
@@ -1686,7 +1689,7 @@ if veh ~= 0 then
16861689
if veh ~= 0 then
16871690
spawned_model = util.reverse_joaat(entities.get_model_hash(veh))
16881691
if hash ~= 0 then
1689-
memory.write_int(check, 0)
1692+
memory.write_int(global_list.check, 0)
16901693
handle = entities.pointer_to_handle(veh)
16911694
bitset = DECORATOR.DECOR_GET_INT(handle, "MPBitset")
16921695
bitset = BitClear(bitset, 3)
@@ -1701,12 +1704,12 @@ if veh ~= 0 then
17011704
while interior == 0 do
17021705
interior = INTERIOR.GET_INTERIOR_FROM_ENTITY(ped)
17031706
if os.time() >= start then
1704-
memory.write_int(check, 1)
1707+
memory.write_int(global_list.check, 1)
17051708
util.stop_thread()
17061709
end
17071710
util.yield_once()
17081711
end
1709-
memory.write_int(check, 1)
1712+
memory.write_int(global_list.check, 1)
17101713
while interior ~= 0 do
17111714
interior = INTERIOR.GET_INTERIOR_FROM_ENTITY(ped)
17121715
util.yield(1000)
@@ -1745,7 +1748,7 @@ end
17451748
end)
17461749

17471750
addict.action(Mors_Mutual, "Claim Personal Vehicle", {"claimpersonal"}, "Claims the current active personal vehicle.", function()
1748-
veh = memory.script_global(1586488 + 1 + (memory.read_int(pv_slot) * 142) + 103)
1751+
veh = memory.script_global(1586488 + 1 + (memory.read_int(global_list.pv_slot) * 142) + 103)
17491752
bitfield = memory.read_int(veh)
17501753
memory.write_int(veh, bitfield & ((bitfield & (1 << 1)) ~= 0 and ~0x42 or ~0x40))
17511754
end)
@@ -3209,10 +3212,10 @@ end
32093212
cashloop = addict.list(Recovery, "$500k + $750k Loop", {}, "", function(); end)
32103213

32113214
addict.toggle_loop(cashloop, "Start $500k + $750k Loop", {""}, "500k + 750k Loop Every 10 Seconds. Warning! Dont spend over 50 million a day. If cash stops it will start again in 60 seconds.", function()
3212-
memory.write_int(memory.script_global(1969112), 1)
3215+
memory.write_int(memory.script_global(global_list.orbi), 1)
32133216
util.log("$ 500K Added")
32143217
util.yield(1)
3215-
memory.write_int(memory.script_global(1969112), 2)
3218+
memory.write_int(memory.script_global(global_list.orbi), 2)
32163219
util.log("$ 750K Added")
32173220
util.yield(1)
32183221
addict.trigger_commands("accepterrors")

0 commit comments

Comments
 (0)