
π₯Medical Crafting
You can define medical items that can be crafted in the
crafting.luafileThe
first keyis thepharmacy shop nameThe
second keyis thecategory nameyou can have as many as you likeThe
third keyis thecraftable item nameyou can have as many as you likeYou must define items that are required as the recipe for the craftable item
You can set the item to be removed or not for things like a pill press or similar
You can set the craft to have either a skill check or progressCircle or both by defining the relevant tables
progress = {
duration = 5000, -- this is multiplied by the amount the player chooses to process
label = 'Crafting item..', -- label for progressCircle
},
skillCheck = { -- skillCheck settings can be removed if you wish and it will just use the progressCircle instead
--{'easy', 'easy', {areaSize = 60, speedMultiplier = 2}, 'hard'}, {'w', 'a', 's', 'd'}, -- this is abit more difficult than the default one if you wish to use this instead
{'easy', 'easy', 'easy'}, {'e'},
},Config.MedicalCrafting = {
['My Pharmacy Location Name'] = {--the key is the location name and must match throughout
['Medical Items'] = { -- this is the category name and this contains the list of craftable items
['my_custom_item'] = { -- this is the item name
recipe = { -- this is a table of items required to make the item name above
--name is item name
--amount is amount of that item required
--removed is a boolean if that item should be removed or just an item check for things like tools
{ name = 'my_custom_item', amount = 1, remove = true, },
{ name = 'my_custom_item', amount = 1, remove = true, },
},
returned = {-- return amounts for crafting the item
amount = 1,
},
skillCheck = { -- skillCheck settings - if you dont want to use skill check remove this entire table from this craft
{'easy', 'easy', 'easy'}, -- difficulties
{'e', 'q'}, -- keys to press
},
progress = {
duration = 5000, -- this is multiplied by the amount the player chooses to process
label = 'Crafting My Custom Item', -- label for progressCircle
},
anim = {
dict = 'amb@prop_human_parking_meter@female@base', -- name of anim dict used (set to nil for nothing)
anim = 'base_female', -- name of anim used (set to nil for nothing)
flag = 41, -- flag number
props = { -- prop settings
{
model = 'prop_tool_screwdvr03', -- name of prop model used (set to nil for nothing)
bone = 57005, -- bone index used (set to nil for nothing)
pos = vec3(0.1, 0.1, 0.06), -- vec3 value for prop position (set to nil for nothing)
rot = vec3(124.0, 0.0, 16.0), -- vec3 value for prop rotation (set to nil for nothing)
},
{
model = 'prop_piercing_gun', -- name of prop model used (set to nil for nothing)
bone = 18905, -- bone index used (set to nil for nothing)
pos = vec3(0.14, 0.04, -0.02), -- vec3 value for prop position (set to nil for nothing)
rot = vec3(186.0, 40.0, 186.0), -- vec3 value for prop rotation (set to nil for nothing)
},
},
},
},
--add other items as required
},
--add other categories as required
},
}Last updated