-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathconfig.lua
65 lines (61 loc) · 2.28 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
54
55
56
57
58
59
60
61
62
63
64
65
Config = {}
Config.Data = {}
Config.Data.DisplayTimer = 3
Config.Data.DisplayDistance = 4.0
Config.Data.Departments = {
["lspd"] = {
label = "Los Santos Police Department",
background_image = "https://static.wikia.nocookie.net/gtawiki/images/2/21/Lossantos_seal.png",
background_color = "rgb(38, 42, 78)",
description = "<h3>Los Santos Police Department</h3><p>The person displaying this badge is a law enforcement officer.</p><p>Los Santos, CA</p>",
colors= {
text = "white",
underline = "white",
photo = "black",
}
},
["bcso"] = {
label = "Blaine County Sheriff's Office",
background_image = "https://static.wikia.nocookie.net/gtawiki/images/3/32/LSSD.png",
background_color = "rgb(200, 78, 0)",
description = "<h3>Blaine County Sheriff's Office</h3><p>The person displaying this badge is a law enforcement officer.</p><p>Los Santos, CA</p>",
colors = {
text = "white",
underline = "white",
photo = "white",
}
},
["medic"] = {
label = "San Andreas Medical",
background_image = "https://nremt.org/icon.png",
background_color = "rgb(40, 40, 60)",
description = "<h3>San Andreas Medical</h3><p>The person displaying this badge is a medical professional.</p><p>Los Santos, CA</p>",
colors = {
text = "white",
underline = "white",
photo = "white",
}
},
}
Config.Functions = {}
Config.Functions.CanDisplayIdentity = function() -- Client Check to see if the player can show their identity
--[[ Example:
if (PlayerData.job.name ~= "police") then
return false
else
return true
end
]]
return true
end
Config.Functions.CanEditIdentity = function() -- Client Check to see if the player can edit their identity
return true
end
Config.Functions.OnEditSubmit = function(data) -- Client handler for when the player submits their edited identity
--[[ Example: I dont want to allow the player to edit their name
if (CurrentData.name ~= data.name) then
data.name = CurrentData.name
end
]]--
return data
end