-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.lua
53 lines (43 loc) · 1.75 KB
/
config.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Config = {}
Config.FrameWork = "ESX" -- Only support => QBCORE(qb-core) and ESX
Config.getSharedObject = "esx:getSharedObject"
Config.qb_Core = "qb-core"
---- (Command) ----
Config.CommandName = "salert" -- /Config.CommandName => /odashcam
Config.alertTime = 7000 -- 1000 sec
Config.alertVolume = 0.4 -- 0.0-1.0
---- (Allowed Jobs and Allowed Grade, on duty check) ----
Config.checkOnDuty = true -- Only support in QBCORE(qb-core) Setting the check on the person's On-Duty when using the command.
Config.allowedJobsData = { -- Jobs and Grade - Setting the allowable jobs and ranks for using the dashcam.
police = { title = "S.W.A.T. Alert", img = "img/police.png", grade = 0 },
sheriff = { title = "S.E.B. Alert", img = "img/sheriff.png", grade = 0 },
government = { title = "N.O.O.S.E. Alert", img = "img/government.png", grade = 0 }
}
---- (Notify Message Text) ----
Config.Message = {
offDuty = "You are not on duty",
not_perm = "You do not have permission to use",
no_message = "You did not enter anything in the message section!",
no_division = "You are not in the appropriate division.",
phone_off = "Your phone is off."
}
---- (Get Phone Status) ----
Config.checkPhoneOn = false
Config.getPhoneStatus = function(player, source) -- player => PlayerData(xPlayer) / source => server check
if source then
-- Your Code:
else
-- Your Code:
end
-- return status(status => true/false)
end
---- (Get Division Status) ----
Config.checkDivision = false
Config.getDivisionStatus = function(player, source) -- check in server side
if source then
-- Your Code:
else
-- Your Code:
end
-- return status(status => true(in division or on division)/false)
end