-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver.lua
24 lines (23 loc) · 1.1 KB
/
server.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
if false then
PerformHttpRequest("https://raw.githubusercontent.com/zf-development/zf_version/main/zf_dialog.txt", function(err, text, headers)
Citizen.Wait(2000)
local curVer = GetResourceMetadata(GetCurrentResourceName(), "version")
if (text ~= nil) then
if (text ~= curVer) then
print '^1-----------------------------------------^0'
print '^1 UPDATE AVAILABLE ZF DIALOG ^0'
print '^1 GET IT ON DISCORD NOW ^0'
print '^1 https://discord.com/invite/YRWF7hxNmB ^0'
print '^1-----------------------------------------^0'
else
print("^2ZF DIALOG is up to date!^0")
end
else
print '^1----------------------------------------^0'
print '^1 ERROR GETTING ONLINE VERSION ^0'
print '^1 IF PERSIST CONTACT ZF#0001 ^0'
print '^1 OR BY TICKETS ON DISCORD ^0'
print '^1----------------------------------------^0'
end
end)
end