Envi Scripts Documentation
  • 👋Introduction
  • 🌉Envi-Bridge
  • ⚙️Compatibility
  • 🖨️Licensing
  • 📒Premium Scripts
    • ❔FAQ / COMMON ISSUES
    • ‼️FIRST STEPS (READ FIRST)
    • ⭐Useful Resources
    • 👀Envi FiveM Showcase Server
    • 📸Envi-Camera
      • ❗First Steps
      • Inventory Setup
      • Editable Functionality
      • Complete Lens Kit
      • Printing Photos
      • Ped Reactions
      • Exports
      • Config File
    • 🪚Envi-ChopShop
      • Inventory Setup
      • How to Chop
      • Props for AntiCheats
      • Editable Functionality
      • Config File
    • 🪣Envi-Dumpsters
      • Common Issues
      • Inventory Setup
      • Editable Functionality
      • Exports
      • Exclusive Zones
      • Survival Items
      • Shopping Carts
      • Hobo Bowling
      • Hobo Taxi
      • Rats and Racoons
      • Config File
      • V2 Config
    • 💺Envi-Ejector-Seats
      • Inventory Setup
      • How to Eject
      • Editable Functionality
      • Config File
    • 🔥Envi-Flamethrower (Standalone)
      • Common Issues
      • Inventory Setup
      • Refueling
      • Editable Functionality
      • Config File
    • 🪽Envi-Flight-Suits
      • Inventory Setup
      • Flight Suits
      • Config File
    • 🍜Envi-Food-Truck
      • ❗VooDoo Required
      • Common Issues
      • Inventory Setup
      • Adding Additional Grill Items
      • Unique Shops with Liveries
      • Spawning the Trucks
      • Using the Trucks
      • Exports
      • Config File
    • 💍Envi-Forever-Rings
      • Inventory Setup
      • Editable Functionality
      • Ring Shop MLO
      • Config File
    • 💻Envi-Hack-Minigames (Standalone)
      • The Worm
      • Password
      • Firewall
      • Node Runner
      • Config File
    • 🎞️Envi-HUD
      • ❗First Time Setup
      • Common Issues
      • Inventory Setup
      • Adding Custom Weapons
      • Change Logo
      • Custom Fonts
      • Converting Notifications
      • Converting Progress Bars
      • Editable Functionality
      • Settings Save Location
      • Exports and Events
      • Commands
      • Vehicle Control
      • Anti Muscle Spasm
      • Ragdoll
      • Config File
    • 🎇Envi-Items
      • Inventory Setup
      • Config File
    • 🚑Envi-Medic
      • Common Issues
      • Fully Disable Transport to Hospital
      • Failsafe
      • Ambulance Scripts
      • Vehicle Fuel
      • Vehicle Keys
      • Exports
      • Config File
    • ☄️Envi-MethVan
      • Common Issues
      • Inventory Setup
      • Cooking Process
      • Editable Functionality
      • Adding a Vehicle
      • Config File
    • 🍃Envi-Megablower9000 (Standalone)
      • Inventory Setup
      • Config File
    • 👯Envi-Population (Standalone)
      • ❗Initial Setup
      • Common Issues
      • Config File
    • 🗒️Envi-Prescriptions
      • Common Issues
      • Inventory Setup
      • Editable Functionality
      • Config File
    • 🔧Envi-Sabotage
      • ❗First Time Setup
      • Common Issues
      • Inventory Setup
      • Exports
    • 🛒Envi-Shops
      • Common Issues
      • Inventory Setup
      • Exports
      • Editable Functionality
      • Config File
    • 📱Envi-Trap-Phone
      • Common Issues
      • Inventory Setup
      • Commands
      • Exports
      • Adding Custom Drugs
      • Using the Phone
      • Disabling Extra Services
      • Config Files
        • config.lua
        • dialogueSettings.lua
        • extraServices.lua
        • gangZoneSettings.lua
        • personalitySettings.lua
        • specialContactSettings.lua
    • 👰Envi-Weddings
      • Inventory Setup
      • Starting Info
      • Manually Removing Data
      • Commands
      • Config File
    • 🎅Envi Xmas-Weapons (Standalone)
      • Inventory Setup
      • Config File
    • 🗡️Envi-Zombie-Weapons (Standalone)
      • Inventory Setup
    • 🧟‍♂️Envi-Zombies
Powered by GitBook
On this page
  1. Premium Scripts
  2. Envi-Trap-Phone

Adding Custom Drugs

The config file has several drugs already in it, however these are really just placeholder drugs. This script is not meant to generate drugs. It's meant to be an in depth solution to being able to sell your drugs after you've created/procured them through other means. READ THIS GUIDE CAREFULLY TO AVOID SIMPLE MISTAKES

Each drug you add will be done so under the Config.Drugs setting. Below is an example of two drugs added

['cokebaggy'] = {
    label = 'Coke',
    basePrice = 150,
    minPrice = 100,
    maxPrice = 220,
    maxSale = 5,
    amountType = 'gram',
    prop = 'p_meth_bag_01_s',
    propOffset = vec3(0.0, 0.0, 0.0),
    propRot = vec3(0.0, 320.0, 0.0),
    largePackage = false,
    highDemandZones = { 0, 1, 2, 3 },
    soldToNpcs = true,
    timeBetweenSales = 20,
},
['coke_7g'] = {
    label = 'Coke',
    basePrice = 550,
    minPrice = 350,
    maxPrice = 750,
    maxSale = 3,
    amountType = 'quarter-ounce',
    prop = 'p_meth_bag_01_s',
    propOffset = vec3(0.0, 0.0, 0.0),
    propRot = vec3(0.0, 320.0, 0.0),
    largePackage = false,
    highDemandZones = { 1, 2, 3 },
    soldToNpcs = true,
    timeBetweenSales = 45,
},
  • The text between the square brackets [] is the item spawn name

    • These must all be unique!

    • These items must be in your items.lua file

  • NOTE: The label field is the same for both in the above config!

    • This config allows you to specify different "amounts" of drugs that can be split up using the scales item

    • In order for the script to know these drugs are related, the label field must match for different amounts

    • The amountType field shows that the top one is a gram of coke, whereas the bottom on is a quarter ounce of coke

    • There are four valid amount types

      • gram

      • quarter-ounce

      • ounce

      • kilo

    • This means that you can have at most four values in the config with the same label, but all with different item names and amounts

  • The rest should be relatively self explanatory, and several have extra comments in the config file itself. The above is just what we get the most questions about

PreviousExportsNextUsing the Phone

Last updated 21 days ago

📒
📱