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
  • Installation Steps
  • Dependencies
  • Troubleshooting
  1. Product Docs
  2. GFX Weed

Installation

This installation guide primarily focuses on the qb-core framework; however, please remember that the GFX Weed Script is also fully compatible with the ESX framework.

If you encounter any errors or difficulties during setup or usage, don’t hesitate to reach out to us. You can find our Discord link at the bottom of the installation document.

Installation Steps

1. Add Script to Server

  1. Place the following folders into your resources directory:

    • gfx_weed

    • gfx_weed_props

  2. Add the following lines to your server.cfg in this order:

    ensure gfx_weed_props
    ensure gfx_weed

2. Add Items to QB-Core

  1. Open the qb-core/shared/items.lua file.

  2. Add the following item rows to the items array:

        weed_skunk_seed              = { name = 'weed_skunk_seed', label = 'Skunk Seed', weight = 0, type = 'item', image = 'weed_seed.png', unique = false, useable = true, shouldClose = true, description = 'A weed seed of Skunk' },
        crack_baggy                  = { name = 'crack_baggy', label = 'Bag of Crack', weight = 0, type = 'item', image = 'crack_baggy.png', unique = false, useable = true, shouldClose = true, description = 'To get happy faster' },
        rolling_paper                = { name = 'rolling_paper', label = 'Rolling Paper', weight = 0, type = 'item', image = 'rolling_paper.png', unique = false, useable = false, shouldClose = true, description = 'Paper made specifically for encasing and smoking tobacco or cannabis.' },
        joint                        = { name = 'joint', label = 'Joint', weight = 0, type = 'item', image = 'joint.png', unique = false, useable = true, shouldClose = true, description = 'Sidney would be very proud at you' },
        fertilizer                   = { name = 'fertilizer', label = 'Plant Fertilizer', weight = 2000, type = 'item', image = 'weed_nutrition.png', unique = false, useable = true, shouldClose = true, description = 'Plant nutrition' },
        trimmer                      = { name = 'trimmer', label = 'Trimmer', weight = 2000, type = 'item', image = 'trimmer.png', unique = false, useable = true, shouldClose = true, description = 'Plant nutrition' },

3. Add Item Images

  1. Locate your qb-inventory/html/images/ folder.

  2. Add the following images (provided in the package) to the folder:

    • weed_skunk_seed.png

    • crack_baggy.png

    • rolling_paper.png

    • joint.png


4. Customize Configurations

Client Configuration (client_config.lua)

  • Adjust the theme colors, table settings, and plant growth parameters to fit your server’s needs.

Server Configuration (server_config.lua)

  • Update the Discord bot token if you are using Discord profile images for leaderboards.

  • Adjust item names or ped models based on your preferences.


5. Test the Script

  • Restart the server.

  • Verify that:

    • Items are available in the inventory.

    • Props spawn correctly.

    • Tables function as intended.

    • Weed growing, processing, and selling systems work seamlessly.


Dependencies

Ensure the following are installed and properly configured:

  • QB-Core Framework (or compatible ESX framework)

  • A notification system for in-game messages (optional but recommended).


Troubleshooting

  • Missing Items in Inventory: Ensure items are added to qb-core/shared/items.lua.

  • Props Not Loading: Confirm gfx_weed_props is started before gfx_weed.

  • Notification Errors: Update the notification function in the config files to your custom notification system.

PreviousGFX WeedNextConfiguration

Last updated 4 months ago

For further assistance, contact the GFX Team!

🌱
πŸ”¨
https://discord.gg/gfxdevelopment