forked from Gravxd/enginesound-menu
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver_config.lua
More file actions
21 lines (21 loc) · 831 Bytes
/
server_config.lua
File metadata and controls
21 lines (21 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Config = {
CheckForUpdates = true, -- will check github for updates (recommended)
HasPermission = function(src)
-- your permission function here - you can integrate your framework for jobs/perms etc
return IsPlayerAceAllowed(src, 'enginesoundmenu')
end,
Notify = function(src, msg, type)
-- you can edit this to whatever you want, by default it uses ox_lib notifications
TriggerClientEvent("ox_lib:notify", src, {
description = msg,
type = type,
position = 'center-right',
duration = 6500,
})
end,
BanPlayer = function(src)
-- your ban function here
print(string.format("%s [%s] has been banned for exploiting events!", GetPlayerName(src), src))
DropPlayer(src, 'Exploiting Events!')
end,
}