Repository navigation
Expand file tree
/
Copy pathconfig.lua
More file actions
86 lines (75 loc) · 2.41 KB
/
Copy pathconfig.lua
File metadata and controls
86 lines (75 loc) · 2.41 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
Config = {}
-- Key to open the menu. Players can change it in their FiveM key bindings.
Config.key = 'F10'
Config.command = 'admin'
-- Staff levels, lowest first. Keep these the same as fivecord's Config.tiers.
-- With fivecord running a player's level comes from their Discord roles.
-- Without it, give levels with aces:
-- add_ace group.admin fiveadmin.admin allow
Config.tiers = { 'support', 'mod', 'admin', 'owner' }
-- Lowest level for each option.
Config.permissions = {
open = 'support',
-- yourself
noclip = 'mod',
godmode = 'admin',
invisible = 'mod',
teleport = 'mod',
coords = 'support',
names = 'support',
blips = 'mod',
selfRevive = 'mod',
-- players
players = 'support',
['goto'] = 'support',
bring = 'mod',
sendBack = 'mod',
spectate = 'mod',
revive = 'support',
heal = 'support',
freeze = 'mod',
message = 'support',
warn = 'support',
kick = 'mod',
ban = 'mod',
inventory = 'admin',
profile = 'support',
-- vehicles
spawn = 'admin',
fix = 'mod',
upgrade = 'admin',
deleteVehicle = 'mod',
plate = 'admin',
clearVehicles = 'admin',
-- world
weather = 'mod',
time = 'mod',
freezeTime = 'mod',
clearArea = 'admin',
}
Config.noclip = {
speeds = { 0.5, 2.0, 6.0, 15.0 }, -- scroll to change, shift for double
start = 2,
}
-- Used when fivecord isn't running. With fivecord, its own commands are used.
Config.weatherCommand = 'weather {type}'
Config.timeCommand = 'time {hour} {minute}'
Config.freezeTimeCommand = 'freezetime'
Config.weatherTypes = { 'CLEAR', 'EXTRASUNNY', 'CLOUDS', 'OVERCAST', 'RAIN', 'THUNDER', 'FOGGY', 'SMOG', 'SNOW', 'XMAS', 'HALLOWEEN' }
-- How players are revived and healed when fivecord isn't running.
Config.revive = function(source)
if GetResourceState('qbx_medical') == 'started' then
return exports.qbx_medical:Revive(source)
elseif GetResourceState('qb-core') == 'started' then
return TriggerClientEvent('hospital:client:Revive', source)
elseif GetResourceState('es_extended') == 'started' then
return TriggerClientEvent('esx_ambulancejob:revive', source)
end
TriggerClientEvent('fiveadmin:revive', source)
end
Config.heal = function(source)
if GetResourceState('qbx_medical') == 'started' then
return exports.qbx_medical:Heal(source)
end
TriggerClientEvent('fiveadmin:heal', source)
end