For the complete documentation index, see llms.txt. This page is also available as Markdown.

Commands and Permissions

rcore_drugs has a small set of commands for admins and players.

⌨️ Commands

Command
Who uses it
Description

/drugs_admin

Admins

Opens the admin panel.

/drugs_addiction

Players

Shows your current addiction level.

drugs_seed

Server console

Imports default gameplay data after first install.

🛡️ Admin Access

Admin access depends on your framework.

ESX checks the groups in Config.FrameworkAdminGroups.

Default groups:

[Framework.ESX] = { 'superadmin', 'admin' }

QBCore checks ACE permission for admin access.

Make sure your admins have the needed command permission in your server permissions setup.

QBX checks ACE permission for admin access.

Make sure your admins have the needed command permission in your server permissions setup.

Standalone checks this ACE permission:

rcore_drugs.admin

✏️ Change Commands

Edit Config.Commands in config.lua.

Config.Commands = {
    Admin = "drugs_admin",
    CheckAddiction = "drugs_addiction"
}

Last updated