Envi-Prescriptions
Envi-Prescriptions Official Documentation
Last updated
Envi-Prescriptions Official Documentation
Last updated
A working FiveM Server
Basic understanding of FiveM server setup and resource management
An up-to-date version of ox_lib
Introducing Envi-Prescriptions, the comprehensive FiveM script that revolutionizes the way prescription medications are managed in your role-playing server. If you're looking for a seamless and immersive solution to bring medical realism to your virtual world, look no further. This document is your essential guide to the installation, configuration, and inventory setup of Envi-Prescriptions. Whether you're running a medical-themed RP server or simply seeking to enhance the authenticity of your gameplay, Envi-Prescriptions empowers you to create, handle, and manage prescription medications with ease. Get ready to elevate your FiveM experience to a whole new level with Envi-Prescriptions!
Config.TestMode = false
When set to true, this allows you to write prescriptions for yourself instead of the closest player. This is useful for testing purposes but should be set to false in production environments.
Config.Target = true
Enables the use of target systems like ox_target, qb-target, or qtarget. If set to false, the script will use zones and TextUI instead.
Config.Job = 'ambulance'
Config.MinimumGrade = 2
Config.Job: Specifies the job name required to use the prescription system.
Config.MinimumGrade: Sets the minimum job grade required to write prescriptions.
['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'},
-- 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'},
Config.ItemUse = true
Config.ItemName = 'prescription_pad'
Config.CommandName = 'prescription'
Config.ItemUse: If true, players must use an item from their inventory to activate the prescription menu. If false, a command is used instead.
Config.ItemName: The name of the item used to write prescriptions (only relevant if Config.ItemUse is true).
Config.CommandName: The command name used to open the prescription menu (only relevant if Config.ItemUse is false).
Config.PrescriptionItem = 'prescription'
Specifies the item name for the prescription receipt given to patients.
Config.Medications = { -- Add more drugs/medications here (you could add more effects and animations in bridge/shared/client.lua)
{item = 'adrenaline', label = 'Adrenaline', total = 3, effects = 'speed', sideEffects = 'blurryvision', anim = 'needle'},
{item = 'oxy', label = 'Oxycontin', total = 10, effects = 'heal', sideEffects = 'drowsy', anim = 'pill'},
{item = 'steroids', label = 'Steroids', total = 5, effects = 'strength', sideEffects = 'headaches', anim = 'pill'},
{item = 'valium', label = 'Valium', total = 15, effects = 'stress', sideEffects = 'slow', anim = 'pill'},
{item = 'xanax', label = 'Xanax', total = 20, effects = 'armor', sideEffects = 'drowsy', anim = 'pill'},
-- Total = Max amount that can be prescribed!
-- THIS IS HOW TO ADD ITEMS TO BE PRESCRIBED, BUT THE EFFECTS WILL BE HANDLED IN ANOTHER SCRIPT
{item = 'cough_syrup', label = 'Cough Syrup'}, -- Needed for Lean Crafting
-- Uncomment the lines below if you want to use together with Wasabi Ambulance
-- Download it here: https://store.wasabiscripts.com/package/5306547
-- {item = 'morphine30', label = 'Morphine 30MG'},
-- {item = 'morphine15', label = 'Morphine 15MG'},
-- {item = 'perc30', label = 'Percocet 30MG'},
-- {item = 'perc10', label = 'Percocet 10MG'},
-- {item = 'perc5', label = 'Percocet 5MG'},
-- {item = 'vic10', label = 'Vicodin 10MG'},
-- {item = 'vic5', label = 'Vicodin 5MG'},
}
This table defines all available medications. Each entry includes:
item: The item name in the inventory system.
label: The display name of the medication.
total: The maximum amount that can be prescribed. effects: The primary effect of the medication.
sideEffects: Possible side effects of the medication.
anim: The animation to play when using the medication.
Side Effects Config.SideEffectsChance = 5 Sets the percentage chance of side effects occurring when using medication.
Config.CoughSyrupItem = 'cough_syrup'
Config.LeanCupItem = 'lean_cup'
Config.SprunkItem = 'sprunk_bottle'
Config.LeanItem = 'lean'
Config.NarcanItem = 'narkan'
Config.MeleeWeapons = {'WEAPON_UNARMED', 'WEAPON_KNIFE', ...}
These settings define special items used in the script, such as components for crafting lean and the Narcan item for stopping overdoses.
Defines a list of melee weapons. This may be used for specific interactions or restrictions within the script.
--Ped Spawning
Config.ServerSidePeds = true
If true, pharmacy NPCs will be spawned server-side. Set to false for client-side spawning, which may be necessary for servers with OneSync issues.
Pharmacy Locations
Config.Pharmacies = {
['pharmacy1'] = {
id = 1, -- ID for this pharmacy
PedModel = "s_m_m_scientist_01",
PedSpawnCoords = vector4(-1253.8384, -1436.7432, 4.373, 127.0),
PedBlip = {
sprite = 51,
scale = 0.75,
colour = 38,
display = 2,
name = 'Pop\'s Pills - Pharmacy',
shortRange = true,
},
PedWalkCoords = vector4(-1254.5278, -1434.0822, 4.3739, 300.0),
PharmacyAnimation = {
dict = "anim@amb@business@bgen@bgen_inspecting@",
anim = "inspecting_med_counting_02_inspector",
flag = 49
}
},
This table defines all pharmacy locations.
Each entry includes:
id: A unique identifier for the pharmacy.
PedModel: The model of the NPC pharmacist.
PedSpawnCoords: The spawn coordinates for the pharmacist NPC.
PedBlip: Configuration for the pharmacy's map blip.
PedWalkCoords: Coordinates for the pharmacist's walking path.
PharmacyAnimation: The animation played by the pharmacist NPC.
function Notify(message, type, time)
lib.notify({
id = 'prescription',
title = 'Pillbox Prescriptions',
description = message,
position = 'top',
style = {
backgroundColor = '#141517',
color = '#909296'
},
icon = 'heartbeat',
iconColor = '#C53030',
length = time
})
end
function TextUI(textUILabel)
lib.showTextUI(textUILabel, {
position = "top-center",
icon = 'fas fa-prescription-bottle-alt',
style = {
borderRadius = 3,
backgroundColor = 'teal',
color = 'white'
}
})
end
CTRL + F and search for markedbills until you find.
} else if (itemData.name == "markedbills") { -- OLD QB
or
case "markedbills": -- NEW QB
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>`;
Config.Lang = {
-- client-side
-- notifications
['no_patient_nearby'] = 'No patient nearby',
['failed_to_get_patient_info'] = 'Failed to get patient info',
['no_medication_selected'] = 'No medication selected',
['not_a_doctor'] = 'You are not a doctor!',
['prescription_written'] = function(itemLabel, name) return 'Prescription for '..itemLabel.. ' has been written for ' .. name end,
['prescription_expired'] = 'Your prescription has expired',
['prescription_ready'] = 'Your prescription is ready.',
['select_medication_confirm'] = 'You must select a medication and dosage before confirming.',
-- menu
['prescriptions_menu_title'] = '๐งพ Prescriptions Menu ๐งพ',
['unique_prescription_id'] = 'Unique Prescription ID',
['citizen_gov_name'] = 'Citizen\'s Government Name',
['citizen_dob'] = 'Citizen\'s Date of Birth',
['prescription_number'] = function(prescriptionId) return '๐ข Prescription #: ' .. prescriptionId end,
['patient_name'] = function(name) return '๐ง Patient Name: ' .. name end,
['patient_dob'] = function(dob) return '๐ Patient DOB: ' .. dob end,
['prescribed_medication'] = '๐ Prescribed Medication ๐',
['select_medication'] = 'Select the medication to be prescribed.',
['signed'] = function(docGrade, doctor) return '๐๏ธ Signed - ' .. docGrade .. ' ' .. doctor end,
['confirm_selection'] = 'โ
[ Confirm Selection ] โ
',
['confirm_your_selection'] = 'Confirm your selected medication and sign the prescription.',
['choose_meds'] = 'Pick your Poison..',
['prescribed_doses'] = '๐ Prescribed Doses ๐', -- <<<< THIS IS NEW - DONT MISS IT WHEN UPDATING
['select_dose'] = 'Select the amount of doses to be prescribed.', -- <<<< THIS IS NEW - DONT MISS IT WHEN UPDATING
['no_dose_selected'] = 'You must select a dosage!', -- <<<< THIS IS NEW - DONT MISS IT WHEN UPDATING
['cant_do_that_much'] = 'You can\'t prescribe that many doses of this drug! Max: ', -- <<<< THIS IS NEW - DONT MISS IT WHEN UPDATING
['narkan_use'] = 'Someone had admisitered Narkan to you!', -- <<<< THIS IS NEW - DONT MISS IT WHEN UPDATING
['narkan_use2'] = 'You\'re starting to come back around!', -- <<<< THIS IS NEW - DONT MISS IT WHEN UPDATING
['narkan_use3'] = 'You start to feel better!', -- <<<< THIS IS NEW - DONT MISS IT WHEN UPDATING
['used_narcan'] = 'You have admisitered Narkan!', -- <<<< THIS IS NEW - DONT MISS IT WHEN UPDATING
-- metadata
['metadata_description'] = function(prescriptionId, dob, itemLabel, docGrade, doctor, expiry) return '**Prescription #:** *' .. prescriptionId .. '* | **Patient DOB:** *' .. dob .. '* | **Prescribed Medication:** *' .. itemLabel .. '* | **Signed by:** *' .. docGrade .. ' ' .. doctor .. '* | **Expires:** *' .. expiry .. '*' end,
-- pharmacy notifications
['collect_medication_start'] = 'You here to collect your prescription? Please allow me a moment to check my records..',
['collect_medication_processing'] = 'Please wait a moment we process your prescription. Feel free to take a seat!',
['collect_medication_ready'] = 'Here you go, your prescription is ready for collection. Take care of yourself and have a nice day!',
['collect_medication_no_prescription'] = 'Sorry, it looks like we don\'t have any prescriptions pending under your name..',
-- target label
['target_collect_medication'] = 'Collect Medication',
-- Server-side
-- webhook info
['prescription_collected'] = 'Prescription Collected',
['player_medication_batchid_patientdob'] = function(name, medication, prescriptionId, dob) return '**Player:** ' .. name .. '\n**Medication:** ' .. medication .. '\n**Batch ID #:** ' .. prescriptionId .. '\n**Patient DOB:** ' .. dob end,
['prescription_written_hook'] = 'Prescription Written',
['doctor_medication_information_expirydate'] = function(doctor, medication, metadata, expiryDate) return '**Doctor:** ' .. doctor .. '\n**Medication:** ' .. medication .. '\n**Information:** ' .. metadata .. '\n**Expiry Date:** ' .. expiryDate end,
['med_metadata_description'] = function(batchId, dob) return '**Batch ID #:** *' .. batchId .. '* | | **Patient DOB:** *' .. dob .. '* *Take 4 times per day or as otherwise directed.* **โ ๏ธ DO NOT EXCEED MAXIMUM DOSAGE โ ๏ธ**' end,
--QB inv
['metadata_prescription'] = function(prescriptionId) return '' .. prescriptionId .. ' ' end,
['metadata_patient_name'] = function(name) return '' .. name .. ' ' end,
['metadata_patient_dob'] = function(dob) return '' .. dob .. ' ' end,
['metadata_prescribed_medication'] = function(itemLabel) return '' .. itemLabel .. ' ' end,
['metadata_signed_by'] = function(docGrade, doctor) return '' .. docGrade .. ' ' .. doctor .. '' end,
['metadata_expires'] = function(expiry) return '' .. expiry .. ' ' end,
['metadata_warning'] = 'DO NOT EXCEED MAXIMUM DOSAGE',
['metadata_take4timesperday'] = 'Take 4 times per day or as otherwise directed.',
['no_money'] = 'You don\'t have enough money to pay for the medication!',
['ran_out_of'] = 'Looks like you\'re all out of',
['you_took'] = 'You\'ve taken',
['amount_remaining'] = 'Doses Left: ',
-- [NEWLY ADDED (WAS MISSING oops ) ] --
['missing_lean_items'] = 'You need a cup, cough syrup and sprunk to make lean!',
}
Config.Webhook = ''
use this to setup your webhook if you wish to utilise it