Code Studio
Tebex DiscordYoutubeGitHub
  • 🌟Welcome to Code Studio
  • Overview
    • 💡What we do
  • 📜Our Scripts
    • Ultimate License System
      • 🛠️Setup
    • Bodycam & Dashcam
      • 🛠️Setup
    • Weather Management
      • 🛠️Setup
    • Car Radio - Car Play Pro
      • 🛠️Setup
    • Modern HUD
      • 🛠️Setup
    • Modern Shops
      • 🛠️Setup
    • Advanced Radio
      • 🛠️Setup
    • Modern ID Card
      • 🛠️Setup
    • Billing Invoice System
      • 🛠️Setup
    • Radial Menu
      • 🛠️Setup
    • Death Screen
      • 🛠️Setup
    • Boss & Gang Menu
      • 🛠️Setup
    • Advanced Notification
      • 🛠️Setup
    • Fingerprint Scanner
      • 🛠️Setup
    • Drunk System + Alcohol Tester
      • 🛠️Setup
    • Advanced Job + ID Card
      • 🛠️Setup
    • Drug Selling + Level Based
      • 🛠️Setup
    • Multi Job System
      • 🛠️Setup
    • Discord2FiveM [V2]
      • 🛠️Setup
    • Modern Radio
      • 🛠️Setup
    • Grappling Gun
      • ♦️Standalone
  • ⚠️FiveM Escrow Protection FAQ
    • Home
    • Error parsing script ... <\1>
    • Failed to verify protected resource
    • You lack the required entitlement
    • What to do if nothing is fixing the errors
Powered by GitBook
On this page
  • Setting Up the Script
  • Events and Exports
  • Client Side
  1. Our Scripts
  2. Drug Selling + Level Based

Setup

This is a detailed setup guide for Drug Selling + Level Based Script. If you have any questions before making a purchase, you can contact us on Discord

PreviousDrug Selling + Level BasedNextMulti Job System

Last updated 1 year ago

Setting Up the Script

  1. Script Supports QB and ESX Frameworks Only

  2. Script Support qb-target, ox_target

  3. You can configure drug dealer UI opening either by using a command or an item

  4. CodeStudio.MaxLevel is Max Drug Level that a player can reach and CodeStudio.XPNeedToLevel is How much XP each level contains (Ex. 100XP = 1 Level)

  5. CodeStudio.PriceChangeAtNight It will multiply drug selling prices at night (Disable is 0)

  6. CodeStudio.MaxQSellDrug is the Maximum Quantity of Drug, Player can sell at one time to NPC

  7. You can set Ped Steal and Cops calling chance like this:

  8. You can Blacklist Drug selling peds by adding peds like this: For Ped Models Refer:

  9. You can customize animations in the config

  10. Drug Selling Rewards can be configured between cash/bank or any item CodeStudio.Reward_Type = 'cash' --'cash/bank/item_name'

  11. Configurable Admin Command to manage XP System

  12. You can add your own police dispatch system Examples are given in the config itself

  13. Add Drug Zones and Customise Levels

  14. Put Drug Item Images in cs_selldrug/ui/assets/img so they can appear in the UI

  15. Customize Drug Selling List with XP and random Prices

Events and Exports

Client Side

  1. Open Drug Dealer UI
    TriggerEvent('cs:selldrug:openUI') 

📜
🛠️
https://docs.fivem.net/docs/game-references/ped-models/
Example is Given in the Config