forked from JaredScar/Badssentials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.lua
More file actions
202 lines (196 loc) · 9.22 KB
/
config.lua
File metadata and controls
202 lines (196 loc) · 9.22 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
Config = {
Prefix = '^5[^1Badssentials^5] ^0',
ScreenAffects = {
AnnounceCommand = "announce",
AcePermission = "Badssentials.Announce", --The ace permission need to run the AnnounceCommand.
AnnouncementHeader = '~b~[~p~Announcement~b~]',
AnnouncementPlacement = 0, -- Set to 0 for top or .3 for middle of screen
AnnounceDisplayTime = 15, -- How many seconds should announcements display for?
DeathScreen = true, -- Enable/Disable the death screen. (Enabled by default.) (ReviveSystem.enable must also be true!)
DeathScreenDisplaySettings = {
--[[
Display used when DeathScreen = true
Available Placeholders;
{REVIVE_COMMAND} | Returns the Set Revive Command.
{RESPAWN_COMMAND} | Returns the set respawn command.
]]
['Line 1'] = {
text = "~r~You are knocked out or dead...",
x = .5,
y = .05,
scale = .8,
center = true,
},
['Line 2'] = {
text = "~b~If you were knocked out, you may use ~g~{REVIVE_COMMAND}~b~!",
x = .5,
y = .1,
scale = .8,
center = true,
},
['Line 3'] = {
text = "~b~If you are dead, you must use ~g~{RESPAWN_COMMAND}~b~!",
x = .5,
y = .15,
scale = .8,
center = true,
},
},
},
AOPSystem = {
DefaultAOP = "Sandy Shores", -- Will be ignored if RandomAOPOnStart is set to true.
AOPCommand = "aop",
--Announcement sent to players when AOP is changed. Set to "", or nil, to disable.
AOP_Announcement = "The AOP has changed to '{NEW_AOP}'. Finish your current scene(s) and head to {NEW_AOP}. ^1Failure to do so could lead to punishment!^0",
SendAOPMessageOnJoin = {true, "The AOP is currently '{AOP}' please change your ped and head there now."},
AOP_AcePermission = "Badssentials.AOP", --The ace permission need to run the AOPCommand.
SetMapNameAsAOP = true, --This will set the map name to the current aop. This affects the "map name" on the server list, etc.
SendSoundOnAOPChange = {true, "buttonchime", .8}, --Whether to play a sound to everyone when aop changes, the name of the file that will play, and the volume. Needs to be a .ogg file.
RandomAOPOnStart = {true, {"Sandy Shores", "Paleto Bay", "Mirror Park", "Downtown Free City"}}, -- If set to true it will pick a random value from the one's specified when the server starts.
AOPWarningCommand = {
enable = true,
command = "sendaopwarning",
acepermission = "Badssentials.AOPWarn",
sound = {true, "warningBeep", .8},
HUDText = {
timetodisplay = 10,
text = "~r~WARNING! ~w~You are out of AOP! Return to '{AOP}'. ~r~You are risking displinary actions.",
x = .5,
y = .12,
scale = .7,
center = true,
},
},
},
ReviveSystem = {
enable = true, --Enable/Disable Revive System
enableBypassLocations = true,
Revive_Delay = 120, -- Set to 0 to disable
Respawn_Delay = 60, -- Set to 0 to disable
RespawnCommand = "respawn",
EnablePEAIntergration = {true, 60, 30},
RespawnMessage = "Respawned successfully!", --Message sent when player respawns.
RespawnErrorMessage = "^1ERROR: You cannot respawn, you still have ^7{RESPAWN_TIME_LEFT} ^1remaining...", --Message sent to user when they can't respawn. Use {TIME_LEFT} to show how long they have to respawn.
ReviveCommand = "revive",
ReviveMessage = "Revived successfully!", --Message sent when player revives.
ReviveOtherSuccessMessage = "You have revived player ^5{PLAYER_NAME} ^0successfully!", --Message sent to player when they successfully revived someone else.
ReviveErrorMessage = "^1ERROR: You cannot revive, you still have ^7{REVIVE_TIME_LEFT} ^1remaining...",
ReviveOthersAcePermission = "Badssentials.Revive", --The ace permission required to revive other players.
ReviveOthersMessage = "You have been revived by ^5{PLAYER_NAME}^0.", --Message sent to user after being revived by someone else. Use {PLAYER_NAME} for the staff member's name.
BypassReviveAcePermission = "Badssentials.Bypass.Revive", --The ace permission required to revive yourself with no cooldown.
BypassRespawnAcePermission = "Badssentials.Bypass.Respawn", --The ace permission required to respawn with no cooldown.
RespawnLocations = {
DefaultLocation = { -- DO NOT REMOVE THE DEFUALT LOCATION
--Sandy Shores Medical Center
x = 1827.26,
y = 3693.58,
z = 34.22,
},
['Los Santos'] = {
--Pillbox Hill Medical Center
x = 298.2,
y = -584.17,
z = 43.26,
},
['Sandy Shores'] = {
--Paleto Bay Medical Center
x = -248.1,
y = 6332.6,
z = 32.43,
},
['Blaine County'] = {
--Paleto Bay Medical Center
x = -248.1,
y = 6332.6,
z = 32.43,
},
['Paleto Bay'] = {
--Paleto Bay Medical Center
x = -248.1,
y = 6332.6,
z = 32.43,
},
},
BypassLocations = { --Locations where players can revive/respawn without the timer, regardless of permissions.
['LEO Training Center'] = {
x = -2079.86,
y = 3057.49,
z = 32.81,
radius = 250,
},
},
},
Misc = {
PostalCommand = "postal",
ToggleHUDCommand = "togglehud",
Peacetime = "peacetime", -- Peacetime & PT both control the peacetime system.
PT = "pt",
PeacetimeAcePermission = "FIRP.PeaceTime", --The ace permission required to run PT or Peacetime command.
usingLegacyFuel = false, --Whether or not to enable the {FUEL} placeholder. (MUST HAVE LegacyFuel INSTALLED AND STARTED BEFORE BADSSENTIALS!)
},
Displays = {
--[[
Available Placeholders;
{NEAREST_POSTAL} | Returns the nearest postal code of the player.
{NEAREST_POSTAL_DISTANCE} | Returns the distance to the nearest postal code.
{STREET_NAME} | Returns the street name the player is on.
{CITY} | Returns the name of the area the player is in.
{COMPASS} | Returns the compass direction of the player (N, NE, E, etc.)
{ID} | Returns the server ID of the player.
{SERVER_TIME} | Returns the current server local time (12-hour format).
{US_DAY} | Returns the current day.
{US_MONTH} | Returns the current month.
{US_YEAR} | Returns the current year.
{GAME_TIME} | Returns the current in-game time (HH:MM).
{GAME_DAY_STRING} | Returns the current in-game day as a string (Sunday, Monday, etc.)
{GAME_DAY} | Returns the current in-game day of the month.
{GAME_MONTH} | Returns the current in-game month.
{GAME_YEAR} | Returns the current in-game year.
{CURRENT_AOP} | Returns the current AOP.
{PEACETIME_STATUS} | Returns the current peacetime status.
{SPEED_MPH} | Returns the player's speed in MPH. (vehicleRestricted must be true)
{SPEED_KPH} | Returns the player's speed in KPH. (vehicleRestricted must be true)
{FUEL} | Returns the vehicle's fuel level. (vehicleRestricted must be true, usingLegacyFuel must be true)
]]
['Compass Location'] = {
x = .16,
y = .889,
display = "~w~| ~b~{COMPASS} ~w~|",
textScale = 0.9,
vehicleRestricted = false,
enabled = true,
},
['Street Location'] = {
x = .205,
y = .9,
display = "~w~| ~b~{STREET_NAME} ~w~|",
textScale = .55,
vehicleRestricted = false,
enabled = true,
},
['Nearest Postal, Discord, & ID'] = {
x = .16,
y = .935,
display = "~b~Nearest Postal:~w~ {NEAREST_POSTAL} ~w~| ~b~Discord.gg: ~w~YOURINVITECODE ~w~| ~b~ID: ~w~{ID}",
textScale = .45,
vehicleRestricted = false,
enabled = true,
},
['AOP & PeaceTime'] = {
x = .16,
y = .96,
display = "~b~Current AOP:~w~ {CURRENT_AOP} ~w~| ~b~PeaceTime: ~w~{PEACETIME_STATUS}",
textScale = .45,
vehicleRestricted = false,
enabled = true,
},
['Speed & Fuel'] = {
x = .0475,
y = .77,
display = "~w~{SPEED_MPH} ~b~MPH ~w~| ~b~Fuel: ~w~{FUEL}",
textScale = .55,
vehicleRestricted = true,
enabled = true,
},
}
}