GFX Development
  • gfx
    • About GFX
  • Product Docs
    • 📥GFX All in One Menu
      • 🛠️Setup
        • ⚙️Configuration
        • 📝Setting Permissions
      • 📒Informations
        • 💻For Developers
        • 👨‍💻Admin Commands
      • 🖇️Pages
        • 📄Profile
        • 📄Leaderboard
    • 🏎️GFX Racing
      • 🔨Installation
      • ⚙️Configuration
    • 📸GFX Deathcam
      • 🔨Installation
      • GFX Deathcam V1
        • ⚙️Configuration
      • GFX Deathcam V2
        • ⚙️Configuration
    • 📊GFX Leaderboard
      • 🔨Installation
      • ⚙️Configuration
    • ⚔️GFX Arena
      • 🔨Installation
      • ⚙️Configuration
    • 👨‍👨‍👦‍👦GFX Squad
      • 🔨Installation
      • ⚙️Configuration
      • 💻Exports
    • 🔬GFX Evidence
      • 🔨Installation
      • ⚙️Configuration
    • ❗GFX Notification
      • 🔨Installation
      • ⚙️Configuration
      • 💻Exports and Events
        • ⬆️Exports
        • ⬇️Events
    • 🚚GFX Delivery
      • 🔨Installation
      • ⚙️Configuration
    • 🛍️GFX Tebexshop
      • 🔨Installation
      • ⚙️Configuration
      • ⚠️Tebex Settings
      • ⬆️Exports
    • 👁️‍🗨️GFX Interact
      • 🔨Installation
      • ⬆️Exports
    • 🫂GFX Crew
      • 🔨Installation
      • ⚙️Configuration
      • ⬆️Exports
    • 🫂GFX Squad Remake
      • 🔨Installation
      • ⚙️Configuration
      • ⬆️Exports
    • GFX PVP Chat
      • 🔨Installation
      • ⚙️Configuration
      • ⬆️Exports
    • GFX HUD
      • 🔨Installation
      • ⚙️Configuration
    • 🔫GFX Attachment
      • 🔨Installation
      • ⚙️Configuration
    • 💀GFX Deathlog
      • 🔨Installation
      • ⚙️Configuration
    • 🛍️GFX PVP Shop
      • 🔨Installation
      • ⚙️Configuration
    • 🧱GFX Crafting
      • 🔨Installation
      • ⚙️Configuration
    • 🚍GFX Bus Job
      • 🔨Installation
      • ⚙️Configuration
    • 🐔GFX Chicken Farm
      • 🔨Installation
      • ⚙️Configuration
    • 🎁GFX Giveaway
      • 🔨Installation
      • ⚙️Configuration
    • 🛍️GFX Pawnshop
      • 🔨Installation
      • ⚙️Configuration
    • 🪵GFX Lumberjack
      • 🔨Installation
      • ⚙️Configuration
    • 🚙GFX Secondhand Vehicle
      • 🔨Installation
      • ⚙️Configuration
    • 🤖GFX Autopilot
      • 🔨Installation
      • ⚙️Configuration
    • 🗳️GFX Vote
      • 🔨Installation
      • ⚙️Configuration
    • 🟢GFX Safezone
      • 🔨Installation
      • ⚙️Configuration
    • 🎅GFX Christmastruck
      • 🔨Installation
      • ⚙️Configuration
    • 🚔GFX Handcuff
      • 🔨Installation
      • ⚙️Configuration
    • 🚚GFX Trucker Job
      • 🔨Installation
      • ⚙️Configuration
    • 🌱GFX Weed
      • 🔨Installation
      • ⚙️Configuration
    • 🔉GFX DUI Radio
      • 🔨Installation
      • ⚙️Configuration
Powered by GitBook
On this page
  • Configuration
  • Usage
  1. Product Docs
  2. GFX Weed

Configuration

Check the instructions below.

Configuration

Client Configuration (client_config.lua)

Theme Customization

Field
Description
Example Value

Theme.primary

Primary color for UI elements.

'#ff4f22'

Theme.primary-content

Text color on primary background.

'#900000'

Weed Tables

Define tables for rolling joints and their associated props:

Table_Types = {
    ['joint_table'] = {
        prop = 'bkr_prop_weed_table_01b',
        objects = {
            { prop = 'ex_mp_h_lit_lamptable_02', offset = vector3(-0.975, 0.45, 0.825), rotation = vector3(0.0, 5.0, 150.0) },
        },
        grids = {
            bud_grid = {
                startOffset = vector3(-0.9, 0.35, 0.0),
                startRotation = vector3(0.0, 0.0, 270.0),
                rowGap = 0.075,
                colGap = 0.075,
                maxCol = 8,
                maxRow = 10,
            },
        },
    },
}
Field
Description
Example Value

prop

The base prop used for the table.

'bkr_prop_weed_table_01b'

grids

Configuration for arranging objects.

See example above.

Plant Objects

Configure plant stages and their corresponding models:

PlantObjects = {
    [1] = `bkr_prop_weed_01_small_01a`,
    [2] = `bkr_prop_weed_01_small_01b`,
    [3] = `bkr_prop_weed_med_01a`,
    [4] = `bkr_prop_weed_med_01b`,
}

Material Quality

Define the soil quality for planting:

MaterialQualities = {
    [`DIRT_TRACK_35`] = { min = 40, max = 60 },
    [`MUD_HARD_36`] = { min = 40, max = 60 },
}

Server Configuration (server_config.lua)

Items Configuration

Field
Description
Example Value

Seed_Item

Item used to plant weed.

'weed_skunk_seed'

Bud_Item

Item representing harvested buds.

'crack_baggy'

Paper_Item

Item for rolling joints.

'rolling_paper'

Joint_Item

The finished joint item.

'joint'

Selling Configuration

Configure the selling behavior and chances:

PedChances = {
    [`g_m_y_ballaeast_01`] = 90,
    [`g_m_y_famca_01`] = 90,
}
Field
Description
Example Value

PedChances

Map of ped models to their chance of purchasing.

[ped_model] = 90

Notifications

Add custom notifications:

Notify = function(source, message)
    -- Your custom notification system here.
end

Usage

  1. Set Up Weed Tables:

    • Place the configured tables in the game world.

  2. Plant and Grow:

    • Use the configured seed item to plant weed.

  3. Process and Roll Joints:

    • Process harvested buds into joints using the configured table.

  4. Sell Joints:

    • Sell joints to configured ped models.


For additional assistance, contact the GFX Team!

PreviousInstallationNextGFX DUI Radio

Last updated 4 months ago

🌱
⚙️