Community Service
Troubleshooting
Troubleshooting
"No tienes permisos" — admins can't run /comserv
If useDiscordWhitelist = true:
- The admin's Discord ID must be linked to their FiveM account (license)
- They must be IN the guild specified by
Config.Discord.guildId - Their Discord role ID must appear in
Config.Permissions.discordRoles - The bot token must have
View Memberspermission on the guild
If useDiscordWhitelist = false, they need one of Config.Permissions.allowedGroups ACE groups.
Discord role check always fails
The bot token is invalid or the guild ID is wrong. Test by querying:
GET https://discord.com/api/v10/guilds/<GUILD_ID>/members/<USER_ID>
Authorization: Bot <BOT_TOKEN>
If you get a 401/403, the token or permissions are wrong.
Player escapes — auto-teleport doesn't fire
Config.MaxDistanceis too high — drop it (default 60.0 meters)- The service area is overlapping a no-collision zone — pick a different
Config.ServiceLocation
Routing bucket isn't isolating
Config.PunishmentBucket = 999 — make sure no other resource is using bucket 999. If you have a custom routing system, pick a unique bucket ID.
Tasks never complete / skill-check broken
Config.SkillCheck.enabled = trueConfig.SkillCheck.difficultymust contain at least one valid difficulty ('easy','medium','hard')Config.SkillCheck.inputsmust be valid key letters
Disable temporarily to confirm: Config.SkillCheck.enabled = false — tasks then complete on touch.
Weapons aren't stripped on release
Config.RemoveWeaponsOnCompletion = trueox_inventoryis started (the strip uses ox_inventory exports)- The release happened via task completion OR
/endcoms(manual escape via routing bucket bypass won't trigger it)
Chat announcements don't show
Config.ChatAnnouncement.enabled = true- The specific event toggle (
onAssignment,onCompletion,onRelease) is alsotrue
Still stuck?
Discord — include your Config.Framework, whether Discord or ACE permissions are in use, and which step in the flow is failing.
