Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Clone69420 committed Dec 15, 2023
1 parent dae29ec commit 5ac8d19
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
20 changes: 15 additions & 5 deletions AddictScript/Addict.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,20 @@ util.require_natives("natives-1663599433")
guidedMissile = require "ToxTool"

local addict = menu
local addict_version = 1.43
local addict_version = 1.44
local gta_version = "v3095"
local dcinv = "fg6Ex4PbkJ"
local dev_mode = false -- Disables stuff like updates [true/false]

local function lan(msg)
return util.log(msg), util.toast(msg)
end

if not async_http.have_access() then
lan("Disable 'Disable Internet Access' to use Addicted!")
util.stop_script()
end

-- Add all SE's here for quicker updates
local se = {
tpspread = -1388926377, -- older gta se version
Expand Down Expand Up @@ -75,8 +84,8 @@ end
local github = addict.list(addict.my_root(), "Updates", {"addictupdates"})
addict.hyperlink(github, "Addict Discord", "https://discord.gg/" .. dcinv)

async_http.init("raw.githubusercontent.com","/Addict0919/Addict-Script/main/AddictScript/AddictScriptChangelog",function(b)
addict.action(github, "Changelog", {"addictchangelog"}, b, function() end)
async_http.init("raw.githubusercontent.com","/Addict0919/Addict-Script/main/AddictScript/AddictScriptChangelog",function(text)
addict.action(github, "Changelog", {"addictchangelog"}, text, function() end)
response=true;
end)
async_http.dispatch()
Expand Down Expand Up @@ -182,13 +191,14 @@ Module("UnregisterNetworkObject", "48 89 70 ? 48 89 78 ? 41 54 41 56 41 57 48 83
UnregisterNetworkObject_addr = address - 0xB
end)

-- Startup --

local welcomeMessage = "Welcome to Addict Script!"
if dev_mode then
welcomeMessage = welcomeMessage .. " (" .. addict_version .. ")\nGTAV: " .. gta_version .. "\nEnjoy Playing :)"
end

util.log(welcomeMessage)
util.toast(welcomeMessage)
lan(welcomeMessage)

local Credits = addict.list(addict.my_root(), "Credits", {"addictcredits"}, "<3")

Expand Down
5 changes: 3 additions & 2 deletions AddictScript/AddictScriptChangelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
________________________
v1.43
- code cleanup/recode
v1.44
[+] added Check for "Disable Internet Access"
[!] improved code
________________________

Report any Bugs/Broken features on the Discord
2 changes: 1 addition & 1 deletion AddictScript/AddictScriptVersion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.43
1.44

0 comments on commit 5ac8d19

Please sign in to comment.