forked from FAXES/Police-Backup
-
Notifications
You must be signed in to change notification settings - Fork 5
/
server.lua
22 lines (20 loc) · 874 Bytes
/
server.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
------------------------------------
--- Police Backup, Made by FAXES ---
------------------------------------
RegisterCommand("bk", function(source, args, rawCommand)
local s = source
local bkLvl = args[1]
if not bkLvl then
TriggerClientEvent("Fax:ShowInfo", source, "~y~Please specify a code level ~n~~s~1, 2, 3")
elseif bkLvl == "1" then
TriggerClientEvent("Fax:BackupReq", -1, bkLvl, s)
elseif bkLvl == "2" then
TriggerClientEvent("Fax:BackupReq", -1, bkLvl, s)
elseif bkLvl == "3" then
TriggerClientEvent("Fax:BackupReq", -1, bkLvl, s)
elseif bkLvl == "99" then
TriggerClientEvent("Fax:BackupReq", -1, bkLvl, s)
elseif bkLvl ~= "1" or bkLvl ~= "2" or bkLvl ~= "3" or bkLvl ~= "99" then
TriggerClientEvent("Fax:ShowInfo", source, "~y~Invalid code level")
end
end)