Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
Clone69420 committed Sep 11, 2024
1 parent aea0118 commit d87a06d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 6 additions & 4 deletions AddictScript/Addict.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ util.require_natives("natives-1663599433")
guidedMissile = require "ToxTool"

local addict = menu
local addict_version = 1.50
local addict_version = 1.51
local gta_version = "v3274"
local dcinv = "fg6Ex4PbkJ"
local dev_mode = false -- Disables stuff like updates [true/false]
Expand Down Expand Up @@ -137,21 +137,22 @@ async_http.dispatch()
repeat util.yield()
until response

--[[
if not dev_mode then
async_http.init("raw.githubusercontent.com","/Addict0919/Addict-Script/main/AddictScript/AddictScriptVersion",function(b)
currentVer=tonumber(b)
response=true;
if addict_version~=currentVer then
util.toast("New Version found")async_http.init('raw.githubusercontent.com','/Addict0919/Addict-Script/main/AddictScript/Addict.lua',function(c)
lan("New Version found")async_http.init('raw.githubusercontent.com','/Addict0919/Addict-Script/main/AddictScript/Addict.lua',function(c)
local d=select(2,load(c))
if d then
util.toast("Update failed to download, please re-download manually via Github or using Addict Discord Server.")
lan("Update failed to download, please re-download manually via Github or using Addict Discord Server.")
return
end;
local e=io.open(filesystem.scripts_dir()..SCRIPT_RELPATH,"wb")
e:write(c)
e:close()
util.toast("Update Done!")
lan("Update Done!")
util.restart_script()
end)
async_http.dispatch()
Expand All @@ -164,6 +165,7 @@ if not dev_mode then
repeat util.yield()
until response
end
]]

-- Memory Functions

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.50
[!] Updated to v3274 (1.69)
v1.51
[!] "Fixed loading issue"
[-] Temp removed Auto Updater & everything related to load()
________________________

Report any Bugs/Broken features on the Discord

0 comments on commit d87a06d

Please sign in to comment.