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

Config

Edit rcore_drugs/config.lua for global settings that should apply to the whole script.

🛠️ Debug

Use debug only when testing or when support asks for more information.

Config.Debug = false

Config.DebugLevel controls which log levels are printed.

💬 Locale

Set the language file loaded from rcore_drugs/locales.

Config.Locale = 'en'

Only en.lua is included by default.

🔎 Auto Detection

These options are detected automatically by default:

Option
Default

Config.Framework

Framework.AUTO_DETECT

Config.Inventory

Inventory.AUTO_DETECT

Config.Database

Database.AUTO_DETECT

Config.Target

Target.AUTO_DETECT

Config.Gangs

Gangs.AUTO_DETECT

Config.Dispatch

Dispatch.AUTO_DETECT

Set them manually only if auto detection finds the wrong resource.

🚪 Lab Interaction

Config.DrugLabEntryPoint controls how players enter labs.

Value
Result

LAB_ENTRY.MARKER

Players use marker interaction.

LAB_ENTRY.TARGET

Players use your configured target resource.

Config.Markers controls marker type, size, and color.

Default marker settings:

Option
Default

Type

20

Size

vector3(0.5, 0.5, 0.5)

Color

vector4(255, 187, 0, 100)

🗺️ Blips

Config.LabBlips controls farm, meth lab, and cocaine lockup blips.

You can disable all lab blips:

⌨️ Commands

Change customer-facing commands in Config.Commands.

Option
Default
Description

Admin

drugs_admin

Opens the admin panel.

CheckAddiction

drugs_addiction

Shows the player's addiction level.

🛡️ Admin Groups

Config.FrameworkAdminGroups controls ESX and QBCore admin groups.

QBCore and QBX also use ACE permission checks for admin access.

🚚 Missions

Config.Missions controls drug sale missions.

Option
Default
Description

PaymentAccount

money

Account used for mission payouts.

ReturnUnsoldItemsToStash

false

Returns unsold items to lab stash when enabled.

MaxDropOffLocations

10

Maximum drop-off stops for a mission.

Purchasable.Enabled

true

Controls paid mission unlocks.

Purchasable.PurchaseAccount

money

Account used when buying mission access.

🤝 Street Deals

Config.StreetDeals controls selling drugs to NPCs on the street.

Important settings:

Option
Default
Description

Enabled

true

Turns street deals on or off.

SaleMultiplier

0.9

Multiplies the base sale price.

RandomRefusalChance

0.3

Chance that an NPC refuses the deal.

GiveWeaponToPed

true

Allows attacking NPCs to receive weapons.

SkillSystem.Enabled

true

Enables dealer progression.

🚨 Dispatch Alerts

Config.DispatchAlerts.DrugUse controls police alerts when players use drugs.

You can change:

  • alert radius

  • base chance by area type

  • whether alerts are enabled

🧪 Addiction

Config.AddictionSystem controls drug addiction and withdrawal.

Option
Default
Description

Enabled

true

Turns addiction on or off.

WithdrawalThreshold

20

Addiction level required before withdrawals start.

WithdrawalTimeLimit

5000

Time before withdrawal effects begin.

DecayInterval

30000

How often addiction decays.

DecayMin

3

Minimum addiction decay per tick.

DecayMax

15

Maximum addiction decay per tick.

🛒 Dealers and Shops

Config.InstantSale and Config.Shops control dealer ped models and instant sale timing.

Dealer locations, supplier items, and prices are configured in /drugs_admin.

📦 Special Props

Config.SpecialProps defines props that admins can place inside labs from the admin panel.

Add custom props here if they should appear as selectable lab props.

🌍 World Labs

Config.WorldLab controls activation range for world labs outside IPL interiors.

Use this if you create labs in normal world MLOs.

🔎 Configuration preview

config.lua

Last updated