Installation
Dependencies
QBCore Framework
How to install
Drag the script in your folder, run the SQL community_service
Discord Logs
Enter your Discord Webhook here - Config.DiscordLogs = true
-- Discord Logs
Config.CommunityServiceWebhook = "https://discord.com/api/webhooks/ENTER_HERE_YOUR_DISCORD_WEBHOOK"
Config.DiscordLogs = true -- If true Discord logs will be send
Commands
You can change commands If you prefer your own one
Config.Commands = {
comserv = "comserv",
endserv = "endcomserv",
-- if Config.Admin = true (Admin/God)
admincommand = "adminserv",
endadmincommand = "endadminserv",
}
Allowed Jobs
Add as many jobs as you want and grant access to whoever you want
Config.AllowedJobs = {
"police",
"sheriff",
}
Trigger for Radialmenu
TriggerClientEvent('comserv:command', source)
Example for qb-radialmenu
(QBCore)
{
id = 'jailplayer',
title = 'Comserv',
icon = 'user-lock',
type = 'client',
event = 'comserv:command',
shouldClose = true
},
Last updated