|
| 1 | +# Configuration |
| 2 | + |
| 3 | + |
| 4 | +## settings \{ \} |
| 5 | + |
| 6 | +### title |
| 7 | +Text and logo shown in the scoreboard header. |
| 8 | + |
| 9 | +**Accepted values** |
| 10 | +text: `string` |
| 11 | +logo: `string` (URL to the image file) |
| 12 | + |
| 13 | +--- |
| 14 | + |
| 15 | +### side |
| 16 | +On which side of the screen should the scoreboard be displayed. |
| 17 | + |
| 18 | +**Accepted values** |
| 19 | +`string` → `'left'{:lua}` or `'right'{:lua}` |
| 20 | + |
| 21 | +--- |
| 22 | + |
| 23 | +### showOverlay |
| 24 | +Enable showing background overlay when scoreboard is open. |
| 25 | + |
| 26 | +**Accepted values** |
| 27 | +`boolean` (true / false) |
| 28 | + |
| 29 | +--- |
| 30 | + |
| 31 | +### closeOnEscape |
| 32 | +Close scoreboard when the escape key is pressed. |
| 33 | + |
| 34 | +**Accepted values** |
| 35 | +`boolean` (true / false) |
| 36 | + |
| 37 | +--- |
| 38 | + |
| 39 | +### closeOnOutsideClick |
| 40 | +Close scoreboard when clicked outside of it. |
| 41 | + |
| 42 | +**Accepted values** |
| 43 | +`boolean` (true / false) |
| 44 | + |
| 45 | +--- |
| 46 | + |
| 47 | +### uppercaseNames |
| 48 | +Make all player names uppercase. |
| 49 | + |
| 50 | +**Accepted values** |
| 51 | +`boolean` (true / false) |
| 52 | + |
| 53 | +--- |
| 54 | + |
| 55 | +### highlightEmptyGroups |
| 56 | +Highlight empty groups by making the count number red. |
| 57 | + |
| 58 | +**Accepted values** |
| 59 | +`boolean` (true / false) |
| 60 | + |
| 61 | +--- |
| 62 | + |
| 63 | +### compactPlayers |
| 64 | +Change the player row height to be more compact. |
| 65 | + |
| 66 | +**Accepted values** |
| 67 | +`boolean` (true / false) |
| 68 | + |
| 69 | +--- |
| 70 | + |
| 71 | +### compactGroups |
| 72 | +Change the group row height to be more compact. |
| 73 | + |
| 74 | +**Accepted values** |
| 75 | +`boolean` (true / false) |
| 76 | + |
| 77 | +--- |
| 78 | + |
| 79 | +### playerColumns |
| 80 | +How many columns to use for player list. |
| 81 | +`2` columns will show 2 players per row, so it will be more compact. |
| 82 | + |
| 83 | +**Accepted values** |
| 84 | +`number` → `1{:lua}` or `2{:lua}` |
| 85 | + |
| 86 | +--- |
| 87 | + |
| 88 | +### groupColumns |
| 89 | +How many columns to use for group list. |
| 90 | +`2` columns will show 2 groups per row, so it will be more compact. |
| 91 | + |
| 92 | +**Accepted values** |
| 93 | +`number` → `1{:lua}` or `2{:lua}` |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | +<hr className="ac-splitter" /> |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | +## visibleSections \{ \} |
| 102 | +The following accepted values are valid for all options in this category. |
| 103 | +See the [guide](./guides/ace-sections) for more information on how to use ACE permissions. |
| 104 | + |
| 105 | +**Accepted values** |
| 106 | +`true{:lua}`: Visible for everyone |
| 107 | +`false{:lua}`: Completely disabled and hidden for everyone |
| 108 | +`'limited'{:lua}`: Visible only for players with the required ACE permission |
| 109 | + |
| 110 | +### groups |
| 111 | +Show or hide the groups section. |
| 112 | + |
| 113 | +--- |
| 114 | + |
| 115 | +### players |
| 116 | +Show or hide the players section. |
| 117 | + |
| 118 | +--- |
| 119 | + |
| 120 | +### playerNames |
| 121 | +Show or hide player names in the players section. |
| 122 | +Setting this to `false{:lua}` will change all player names to "**Anonymous player**". |
| 123 | + |
| 124 | +--- |
| 125 | + |
| 126 | +### playerIds |
| 127 | +Show or hide player IDs in the players section. |
| 128 | +Setting this to `false{:lua}` will hide all player IDs. |
| 129 | + |
| 130 | +--- |
| 131 | + |
| 132 | +### statusIndicators |
| 133 | +Show or hide the status indicators section. |
| 134 | + |
| 135 | +--- |
| 136 | + |
| 137 | +### footer |
| 138 | +Show or hide the footer section. |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | +<hr className="ac-splitter" /> |
| 143 | + |
| 144 | + |
| 145 | + |
| 146 | +## commandName |
| 147 | +Name of the command to open the scoreboard. |
| 148 | + |
| 149 | +**Accepted values** |
| 150 | +`string` |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | +## commandKey |
| 155 | +Default keybind for the radio command. |
| 156 | + |
| 157 | +**Accepted values** |
| 158 | +`false{:lua}` = Keybind will not be created at all. |
| 159 | +`''{:lua}` = Empty quotes for creating the keybind, but not setting a default key. |
| 160 | +`'NUMPAD0'{:lua}` = Or any other [valid key](https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard) to create a keybind with *this* key as a default. |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | +## includeOffDuty |
| 165 | +Include off-duty players in the group count. |
| 166 | + |
| 167 | +**Accepted values** |
| 168 | +`boolean` (true / false) |
| 169 | + |
| 170 | + |
| 171 | + |
| 172 | +## groups |
| 173 | +Individual group rows shown in scoreboard. |
| 174 | + |
| 175 | +**Accepted values** |
| 176 | +`table[]` with the following structure: |
| 177 | + |
| 178 | +```ts |
| 179 | +{ |
| 180 | + label: string; // Name of the group row shown in scoreboard |
| 181 | + groups: string[]; // Array of groups to include in this row's total count |
| 182 | +} |
| 183 | +``` |
| 184 | + |
| 185 | + |
| 186 | + |
| 187 | +## statusIndicators |
| 188 | +Individual status indicators shown in the section. |
| 189 | +For more information on how to use custom icons, see the guide [here](./issues#status-indicator-icon-is-not-showing). |
| 190 | +To learn how to change the state of these indicators, see the guide [here](./guides/status-indicators). |
| 191 | + |
| 192 | +**Accepted values** |
| 193 | +`table[]` with the following structure: |
| 194 | + |
| 195 | +```ts |
| 196 | +{ |
| 197 | + id: string; // Unique identifier for the status indicator, used in your exports to change the state |
| 198 | + label: string; // Label visible in the hover tooltip |
| 199 | + icon: string; // Icon of the indicator, must be a valid Iconify name |
| 200 | + defaultState?: boolean; // Default state of the indicator; true = on, false = off |
| 201 | +} |
0 commit comments