added new scripts and eup

This commit is contained in:
2025-05-19 16:45:39 -07:00
parent 92357c972e
commit 5fa9cc69be
292 changed files with 10254 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
-- version check
Citizen.CreateThread(
function()
local vRaw = LoadResourceFile(GetCurrentResourceName(), 'version.json')
if vRaw and config.versionCheck then
local v = json.decode(vRaw)
PerformHttpRequest(
'https://raw.githubusercontent.com/blockba5her/nearest-postal/master/version.json',
function(code, res, headers)
if code == 200 then
local rv = json.decode(res)
if rv.version ~= v.version then
print(
([[
-------------------------------------------------------
nearest-postal
UPDATE: %s AVAILABLE
CHANGELOG: %s
-------------------------------------------------------
]]):format(
rv.version,
rv.changelog
)
)
end
else
print('nearest-postal unable to check version')
end
end,
'GET'
)
end
end
)