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
  • Add to items.lua
  • QB-Based Inventories
  1. Premium Scripts
  2. Envi-Prescriptions

Inventory Setup

Add to items.lua

['prescription_pad'] = {        
    label = 'Prescription Pad',        
    weight = 200,         
    stack = false,        
    close = true,        
    description = 'For use by medical professionals only',    
},
['prescription'] = {        
    label = 'Prescription Receipt',        
    weight = 20,         
    stack = false,        
    close = true,        
    description = nil,    
},      
['adrenaline'] = {        
    label = 'Adrenaline',        
    weight = 200,         
    stack = false,        
    close = true,        
    description = 'The Label Has Been Ripped Off',    
},          
['oxy'] = {        
    label = 'Oxy',        
    weight = 200,         
    stack = false,        
    close = true,        
    description = 'The Label Has Been Ripped Off',    
},    
['xanax'] = {        
    label = 'Xanax',        
    weight = 200,         
    stack = false,        
    close = true,        
    description = nil,    
},
['steroids'] = {        
    label = 'Steroids',        
    weight = 200,         
    stack = false,        
    close = true,        
    description = nil,    
},
['valium'] = {        
    label = 'Valium',        
    weight = 200,         
    stack = false,        
    close = true,        
    description = nil,    
},
['cough_syrup'] = {        
    label = 'Cough Syrup',        
    weight = 200,         
    stack = false,        
    close = true,        
    description = nil,    
},
['lean_cup'] = {        
    label = 'Styrofoam Cup',        
    weight = 200,         
    stack = false,        
    close = true,        
    description = nil,    
},
['sprunk_bottle'] = {        
    label = 'Bottle of Sprunk',        
    weight = 200,         
    stack = false,        
    close = true,        
    description = nil,    
},
['lean'] = {        
    label = 'Cup of Lean',        
    weight = 200,         
    stack = false,        
    close = true,        
    description = nil,    
},
['narkan'] = {        
    label = 'Narkan',        
    weight = 200,         
    stack = false,        
    close = true,        
    description = nil,    
},
-- Prescription Stuff 
['prescription'] 			= {['name'] = 'prescription',				['label'] = 'Prescription Receipt',			['weight'] = 100,			['type'] = 'item',		['image'] = 'prescription.png',					['unique'] = true,		['useable'] = true,		['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = ''},
['prescription_pad'] 			= {['name'] = 'prescription_pad',			['label'] = 'Prescription Pad',			        ['weight'] = 100,			['type'] = 'item',		['image'] = 'prescription_pad.png',				['unique'] = true,		['useable'] = true,		['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = ''},
['adrenaline'] 				= {['name'] = 'adrenaline',				['label'] = 'Adrenaline',			        ['weight'] = 100,			['type'] = 'item',		['image'] = 'adrenaline.png',					['unique'] = true,		['useable'] = true,		['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = ''},

--['oxy'] 			 	= {['name'] = 'oxy',					['label'] = 'Oxycodone',			        ['weight'] = 100,			['type'] = 'item',		['image'] = 'oxy.png',					        ['unique'] = true,		['useable'] = true,		['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = ''},
['xanax'] 			 	= {['name'] = 'xanax',					['label'] = 'Xanax',				        ['weight'] = 100,			['type'] = 'item',		['image'] = 'xanax.png',					['unique'] = true,		['useable'] = true,		['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = ''},
['steroids'] 			 	= {['name'] = 'steroids',				['label'] = 'Steroids',			                ['weight'] = 100,			['type'] = 'item',		['image'] = 'steroids.png',					['unique'] = true,		['useable'] = true,		['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = ''},
['valium'] 			 	= {['name'] = 'valium',					['label'] = 'Valium',			                ['weight'] = 100,			['type'] = 'item',		['image'] = 'valium.png',					['unique'] = true,		['useable'] = true,		['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = ''},

-- Lean Stuff
['cough_syrup'] 			= {['name'] = 'cough_syrup',				['label'] = 'Cough Syrup',			        ['weight'] = 1000,			['type'] = 'item',		['image'] = 'cough_syrup.png',					['unique'] = true,		['useable'] = true,		['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Warning: Contains Codeine and Promethazine'},
['sprunk_bottle'] 			= {['name'] = 'sprunk_bottle',				['label'] = 'Bottle of Sprunk',			        ['weight'] = 1000,			['type'] = 'item',		['image'] = 'sprunk_bottle.png',				['unique'] = true,		['useable'] = true,		['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = ''},
['lean'] 			 	= {['name'] = 'lean',					['label'] = 'Cup of Lean',			        ['weight'] = 1000,			['type'] = 'item',		['image'] = 'lean.png',					        ['unique'] = true,		['useable'] = true,		['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'That Purple Sizzurp'},
['lean_cup'] 			        = {['name'] = 'lean_cup',				['label'] = 'Styrofoam Cup',			        ['weight'] = 1000,			['type'] = 'item',		['image'] = 'lean_cup.png',					['unique'] = true,		['useable'] = true,		['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = ''},
['narkan'] 			        = {['name'] = 'narkan',				        ['label'] = 'Narkan',			                ['weight'] = 1000,			['type'] = 'item',		['image'] = 'narkan.png',					['unique'] = true,		['useable'] = true,		['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Administer to prevent fatalities in overdosing patients'},

QB-Based Inventories

If you have a qb based inventory and the metadata isn't automatically showing when hovering over the item in your inventory, then try following these steps:

  • Find your javascript file (usually called app.js in an html folder)

  • CTRL + F and search for markedbills until you find.

-- Search this if you're using old qb
} else if (itemData.name == "markedbills") {

-- Search this if you're using newer qb
case "markedbills":
  • Above this line add the following code.

}  else if (itemData.name == "prescription") {            
	        $(".item-info-title").html("<p> <i>" + itemData.label + " </i> </p>");            
	        $(".item-info-description").html(                
		        "<p> Prescription : <i>" + itemData.info.prescription + "</i></p>" +                 
		        "<p> Patient Name :  <i> " + itemData.info.name + " </i> </p>" +                 
		        "<p> Patient DOB :  <i> " + itemData.info.dob + " </i> </p>" +                 
		        "<p> Prescribed Medication :  <i> " + itemData.info.itemLabel + " </i> </p>" +                 
		        "<p> Signed by :  <i> " + itemData.info.signed + " </i> </p>" +                 
		        "<p> Expires :  <i> " + itemData.info.expiry + " </i> </p>" +                 
		        "<p> <i> " + itemData.info.type + " </i> </p>"            
	        );                    
        }        
        else if (itemData.name == "oxy") {            
	        $(".item-info-title").html("<p> <i>" + itemData.label + " </i> </p>");            
	        $(".item-info-description").html(                
		        "<p> Prescription : <i>" + itemData.info.prescription + "</i></p>" +                 
		        "<p> Patient Name :  <i> " + itemData.info.name + " </i> </p>" +                 
		        "<p> Patient DOB :  <i> " + itemData.info.dob + " </i> </p>" +                 
		        "<p> Dosage :  <i> " + itemData.info.dosage + " </i></p><br> " +                 
		        "<p>" + itemData.info.warning + " </p>"            
	        );                    
        }        
        else if (itemData.name == "adrenaline") {            
	        $(".item-info-title").html("<p> <i>" + itemData.label + " </i> </p>");            
	        $(".item-info-description").html(                
		        "<p> Prescription : <i>" + itemData.info.prescription + "</i></p>" +                 
		        "<p> Patient Name :  <i> " + itemData.info.name + " </i> </p>" +                 
		        "<p> Patient DOB :  <i> " + itemData.info.dob + " </i> </p>" +                 
		        "<p> Dosage :  <i> " + itemData.info.dosage + " </i></p><br> " +                 
		        "<p> <i> " + itemData.info.warning + " </i> </p>"            
	        );
        }
        else if (itemData.name == "xanax") {            
	        $(".item-info-title").html("<p> <i>" + itemData.label + " </i> </p>");            
	        $(".item-info-description").html(                
		        "<p> Prescription : <i>" + itemData.info.prescription + "</i></p>" +                 
		        "<p> Patient Name :  <i> " + itemData.info.name + " </i> </p>" +                 
		        "<p> Patient DOB :  <i> " + itemData.info.dob + " </i> </p>" +                 
		        "<p> Dosage :  <i> " + itemData.info.dosage + " </i></p><br> " +                 
		        "<p>" + itemData.info.warning + " </p>"            
	        );                    
        }   
        else if (itemData.name == "valium") {            
	        $(".item-info-title").html("<p> <i>" + itemData.label + " </i> </p>");            
	        $(".item-info-description").html(                
		        "<p> Prescription : <i>" + itemData.info.prescription + "</i></p>" +                 
		        "<p> Patient Name :  <i> " + itemData.info.name + " </i> </p>" +                 
		        "<p> Patient DOB :  <i> " + itemData.info.dob + " </i> </p>" +                 
		        "<p> Dosage :  <i> " + itemData.info.dosage + " </i></p><br> " +                 
		        "<p>" + itemData.info.warning + " </p>"            
	        );                    
        }
        else if (itemData.name == "cough_syrup") {            
	        $(".item-info-title").html("<p> <i>" + itemData.label + " </i> </p>");            
	        $(".item-info-description").html(                
		        "<p> Prescription : <i>" + itemData.info.prescription + "</i></p>" +                 
		        "<p> Patient Name :  <i> " + itemData.info.name + " </i> </p>" +                 
		        "<p> Patient DOB :  <i> " + itemData.info.dob + " </i> </p>" +                 
		        "<p> Dosage :  <i> " + itemData.info.dosage + " </i></p><br> " +                 
		        "<p>" + itemData.info.warning + " </p>"            
	        );                    
        }            
        else if (itemData.name == "steroids") {            
	        $(".item-info-title").html("<p> <i>" + itemData.label + " </i> </p>");            
	        $(".item-info-description").html(                
		        "<p> Prescription : <i>" + itemData.info.prescription + "</i></p>" +                 
		        "<p> Patient Name :  <i> " + itemData.info.name + " </i> </p>" +                 
		        "<p> Patient DOB :  <i> " + itemData.info.dob + " </i> </p>" +                 
		        "<p> Dosage :  <i> " + itemData.info.dosage + " </i></p><br> " +                 
		        "<p> <i> " + itemData.info.warning + " </i> </p>"            
	        );

    case "prescription":
        return `<p><strong>Prescription: </strong><span>${itemData.info.prescription}</span></p>
        <p><strong>Patient Name: </strong><span>${itemData.info.name}</span></p>
        <p><strong>Patient DOB: </strong><span>${itemData.info.dob}</span></p>
        <p><strong>Prescribed Medication: </strong><span>${itemData.info.itemLabel}</span></p>
        <p><strong>Signed by: </strong><span>${itemData.info.signed}</span></p>
        <p><strong>Expires: </strong><span>${itemData.info.expiry}</span></p>
        <p><strong>Doses Left: </strong><span>${itemData.info.doses}</span></p>`;   
    case "adrenaline":
        return `<p><strong>Patient Name: </strong><span>${itemData.info.name}</span></p>
        <p><strong>Patient DOB: </strong><span>${itemData.info.dob}</span></p>
        <p><strong>Dosage: </strong><span>${itemData.info.dosage}</span></p>
        <p></strong><span>${itemData.info.warning}</span></p>
        <p><strong>Remaining: </strong><span>${itemData.info.total}</span></p>`; 
    case "oxy":
        return `<p><strong>Patient Name: </strong><span>${itemData.info.name}</span></p>
        <p><strong>Patient DOB: </strong><span>${itemData.info.dob}</span></p>
        <p><strong>Dosage: </strong><span>${itemData.info.dosage}</span></p>
        <p></strong><span>${itemData.info.warning}</span></p>
        <p><strong>Remaining: </strong><span>${itemData.info.total}</span></p>`; 
    case "steroids":
        return `<p><strong>Patient Name: </strong><span>${itemData.info.name}</span></p>
        <p><strong>Patient DOB: </strong><span>${itemData.info.dob}</span></p>
        <p><strong>Dosage: </strong><span>${itemData.info.dosage}</span></p>
        <p></strong><span>${itemData.info.warning}</span></p>
        <p><strong>Remaining: </strong><span>${itemData.info.total}</span></p>`; 
    case "valium":
        return `<p><strong>Patient Name: </strong><span>${itemData.info.name}</span></p>
        <p><strong>Patient DOB: </strong><span>${itemData.info.dob}</span></p>
        <p><strong>Dosage: </strong><span>${itemData.info.dosage}</span></p>
        <p></strong><span>${itemData.info.warning}</span></p>
        <p><strong>Remaining: </strong><span>${itemData.info.total}</span></p>`; 
    case "xanax":
        return `<p><strong>Patient Name: </strong><span>${itemData.info.name}</span></p>
        <p><strong>Patient DOB: </strong><span>${itemData.info.dob}</span></p>
        <p><strong>Dosage: </strong><span>${itemData.info.dosage}</span></p>
        <p></strong><span>${itemData.info.warning}</span></p>
        <p><strong>Remaining: </strong><span>${itemData.info.total}</span></p>`; 
    case "cough_syrup":
        return `<p><strong>Patient Name: </strong><span>${itemData.info.name}</span></p>
        <p><strong>Patient DOB: </strong><span>${itemData.info.dob}</span></p>
        <p><strong>Dosage: </strong><span>${itemData.info.dosage}</span></p>
        <p></strong><span>${itemData.info.warning}</span></p>`; 
PreviousCommon IssuesNextEditable Functionality

Last updated 22 days ago

📒
🗒️