βš’οΈconfiguration

.env File

Bot configuration is stored in .env file in the resource root.

# REQUIRED: Discord Bot Token
TOKEN=YOUR_BOT_TOKEN_HERE

# REQUIRED: Owner Role ID (bypasses all permission checks)
OWNER_ROLE_ID=123456789012345678

# OPTIONAL: Fallback Admin Role ID 
ADMIN_ROLE_ID=123456789012345678

# OPTIONAL: Log Channel ID
LOG_CHANNEL_ID=123456789012345678

# OPTIONAL: Command Prefix (default: !)
PREFIX=!
Variable
Required
Description

TOKEN

βœ…

Discord bot token from Developer Portal

OWNER_ROLE_ID

βœ…

Role with full access to all commands

ADMIN_ROLE_ID

❌

Fallback role for commands without specific permissions

LOG_CHANNEL_ID

❌

Channel for bot activity logs

PREFIX

❌

Command prefix (default: !)


shared/config.lua

Main Lua configuration file.


Command Permissions

Configure which Discord roles can use each command.

Permission Logic

1

OWNER_ROLE_ID

Full access to everything.

2

Specific roles in command

Only those roles listed in the command's roles array can use the command.

3

Empty roles fallback

  • If a command's roles is an empty table {}, it falls back to using ADMIN_ROLE_ID.

  • If ADMIN_ROLE_ID is not set, anyone can use the command.


Framework Settings

The bot automatically detects your framework:

Framework
Detection

ESX

es_extended resource

QB-Core

qb-core resource

QBox

qbx_core resource

Standalone

No framework detected

To manually set framework:


Screenshot Settings

Configure screenshot quality for !ss command:

circle-info

Requires screenshot-basic resource!


Warning System

Configure warning behavior: