-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathversion.lua
More file actions
28 lines (22 loc) · 820 Bytes
/
version.lua
File metadata and controls
28 lines (22 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--[[ Version Checker ]]--
local version = 2
AddEventHandler("onResourceStart", function(resource)
if resource == GetCurrentResourceName() then
CheckFrameworkVersion()
end
end)
function CheckFrameworkVersion()
PerformHttpRequest("http://xcross.nn.pe/versions/k9_version.txt", function(err, text, headers)
if text == tostring(version) then
print(" ")
print("---------- K9 VERSION ----------")
print("K9 Script Updated and ready to go!")
print("--------------------------------")
else
print(" ")
print("---------- K9 VERSION ----------")
print("K9 Script is outdated. Maybe look into updating?")
print("--------------------------------")
end
end, 'GET', '', {})
end