
ποΈPrescriptions
Jobs defined via Config.Prescriptions can use the command to create prescriptions for players and allows the patient to redeem medication items that are defined via the config file and selected in the input window
Players can then use their prescription item which will open a menu displaying all their available medication items and the respective information about their prescription which they can then redeem
Each medication item can only be redeemed once per day and once the prescription is expired or revoked or removed the player then starts fresh and will need a new prescription given to them
--prescription settings
Config.Prescriptions = {
Enabled = true, -- enable prescriptions
ItemName = 'prescription_paper', -- item name
MaxDays = 14, -- max number of days for prescription
MaxPerDay = 5, -- max amount of items given per day
BossRank = 4, -- minimum job rank required to edit prescriptions (usually 4 is the boss rank if you have lower ranks in your jobs.lua snippets that have the isboss flag then declare that number here)
WriterJobs = { -- jobs that can write prescriptions
'pillbox_pharmacy',
'vinewood_pharmacy',
'littleseoul_pharmacy',
'vespucci_pharmacy',
'ambulance',
--add more as required
},
BossJobs = { -- boss jobs that can edit prescriptions
'pillbox_pharmacy',
'vinewood_pharmacy',
'littleseoul_pharmacy',
'vespucci_pharmacy',
'ambulance',
--add more as required
},
AllowedItems = { -- allowed items for prescriptions
painkillers = { label = 'Painkillers' },
bandage = { label = 'Bandage' },
sleepingtablets = { label = 'Sleeping Tablets' },
-- add more items as required
},
}Last updated