-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.lua
More file actions
38 lines (32 loc) · 1.23 KB
/
server.lua
File metadata and controls
38 lines (32 loc) · 1.23 KB
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
29
30
31
32
33
34
35
36
37
38
print("Admin Script by rhys19 has loaded successfully!!!")
-- Admin Command
RegisterCommand("startadmin", function(source, args, raw)
TriggerClientEvent("adminpursuit:AddAdmin", -1, source)
end, true)
RegisterCommand("stopadmin", function(source, args, raw)
TriggerClientEvent("adminpursuit:RemoveAdmin", -1, source)
end, true)
-- Version Checker do not remove --
local CurrentVersion = '2.0'
local GithubResourceName = 'Admin-Script'
PerformHttpRequest('https://raw.githubusercontent.com/rhys19/Admin-Script-Stuff/master/VERSION', function(Error, NewestVersion, Header)
PerformHttpRequest('https://raw.githubusercontent.com/rhys19/Admin-Script-Stuff/master/CHANGES', function(Error, Changes, Header)
print('\n')
print('--------------------------------------------------------------------')
print('')
print('Admin Script')
print('')
print('Current Version: ' .. CurrentVersion)
print('Newest Version: ' .. NewestVersion)
io.write("")
print(' Changelog: ' .. Changes)
print('')
if CurrentVersion ~= NewestVersion then
print('--------------------------------------------------------------------')
else
print('-- Up to date!')
print('--------------')
end
print('\n')
end)
end)