gearConfiguration

Configure Chamly Drugs locations, rewards, and settings.

Main Configuration

File: config/main.lua

Language

Config.Locale = 'en'  -- Options: 'en' (English) or 'pl' (Polish)

Target System

Config.Target = {
    UseTargetSystem = 'auto',  -- Options: 'auto', 'ox_target', 'qb-target', 'standalone'
    
    -- Standalone mode settings (if not using ox_target/qb-target)
    StandaloneSettings = {
        showDistance = 3.0,      -- Distance (meters) to show prompt
        interactDistance = 2.0,  -- Distance (meters) to interact
        interactKey = 38         -- Key code (38 = E key)
    },
    
    -- Target system settings
    TargetSettings = {
        interactDistance = 2.0,  -- Interaction range
        debugPoly = false        -- Show debug zones (set false for production!)
    }
}

Key Codes:

Drug Configuration Files

Each drug has its own config file in config/drugs/:

  • weed.lua - Marijuana

  • meth.lua - Methamphetamine

  • coke.lua - Cocaine

  • codeine.lua - Codeine

Adding Harvest Locations

Example from config/drugs/weed.lua:

Getting Coordinates In-Game:

  1. Stand at desired location

  2. Press F8 to open console

  3. Type: GetEntityCoords(PlayerPedId())

  4. Copy the X, Y, Z values

Adding Processing Locations

Configuring Rewards

Control how many items players get:

Example Calculations:

Harvesting:

  • Click 6 buds = 6 weed guaranteed

  • Each bud has 10% chance for +1 bonus

  • Potential: 6-12 weed per plant

Processing:

  • Input: 10 weed → Output: 2 weed_pooch

  • Ratio: 5:1 (5 raw per 1 processed)

Job Restrictions

Prevent certain jobs from using drugs:

Players with these jobs will see an error message when trying to interact.

Remove restrictions:

Spawn Distance

Performance tip: Lower value = better FPS, but smaller interaction area

  • 50.0 - Default, good for open areas

  • 30.0 - Better performance, smaller farms

  • 100.0 - Large farms, may impact FPS

Props & Models

Customize visual appearance:

Note: Models must exist in GTA V. Check GTA V Propsarrow-up-right for available models.

Colors

Change interaction colors:

RGB values: 0-255, Alpha: 0-255 (transparency)

Discord Logging

File: config/logs.lua

Creating Discord Webhooks:

  1. Open your Discord server

  2. Server Settings → Integrations → Webhooks

  3. Click "New Webhook"

  4. Name it (e.g., "Chamly Drugs - Weed")

  5. Copy webhook URL

  6. Paste into config

What Gets Logged:

  • All harvesting actions (player, location, amount)

  • All processing actions (player, materials used, products created)

  • Anti-cheat violations

Common Configuration Examples

Increase Rewards

Faster Processing

Add Multiple Farms

Change Interaction Key (Standalone Mode)

After Making Changes

  1. Save all config files

  2. Restart resource: restart chamly_drugs

  3. Test changes in-game

  4. Check server console for errors

Configuration Checklist

Before going live:

Need Help?

Last updated