forked from acscripts/ac_scoreboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.lua
More file actions
102 lines (85 loc) · 2.42 KB
/
config.lua
File metadata and controls
102 lines (85 loc) · 2.42 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
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
-----------------------------------------------------------------
-- Visit https://docs.acscripts.dev/scoreboard for documentation
-----------------------------------------------------------------
return {
settings = {
title = {
text = 'AC Scoreboard',
logo = 'https://cfx-nui-ac_scoreboard/web/build/logo.svg',
},
side = 'right',
showOverlay = false,
closeOnEscape = true,
closeOnOutsideClick = true,
uppercaseNames = false,
highlightEmptyGroups = true,
compactPlayers = false,
compactGroups = false,
playerColumns = 1,
groupColumns = 1,
},
visibleSections = {
groups = true,
groupCount = true,
players = true,
playerNames = true,
playerIds = true,
statusIndicators = true,
footer = true,
},
-- Command name for opening the scoreboard
commandName = 'scoreboard',
-- Default keybind for the '/scoreboard' command
commandKey = 'DELETE',
-- Whether to include off-duty players in group count (if not defined in the group row itself)
includeOffDuty = false,
-- Group list shown in the scoreboard
groups = {
{
label = 'Police',
groups = {'police', 'sheriff'},
includeOffDuty = false,
icon = 'ic:round-local-police',
},
{
label = 'EMS',
groups = {'ambulance'},
includeOffDuty = false,
},
{
label = 'Mechanics',
groups = {'lsc', 'bennys', 'hayes'},
includeOffDuty = true,
icon = 'mdi:wrench',
},
{
label = 'Taxi',
groups = {'taxi'},
},
},
-- Status indicators shown in the scoreboard
statusIndicators = {
{
id = 'house_robbery',
label = 'House robbery',
icon = 'mdi:house',
defaultState = true,
},
{
id = 'store_robbery',
label = 'Store robbery',
icon = 'mdi:store',
defaultState = false,
},
{
id = 'bank_robbery',
label = 'Bank robbery',
icon = 'mdi:bank',
groupTrigger = {
groups = {'police', 'sheriff'},
minimumCount = 12,
includeOffDuty = true,
},
},
},
}