Consumables
Adding more CONSUMABLES
Adding more consumables to the script is easily achieved via the consumables.lua file
Consumable items can have required items to use and return items from using the consumable
Config.WeedShopConsumables = {
['my_cool_new_consumable'] = {
effects = {
armour = 25, -- amout of armour given
stress = 20, -- amount of stress reduced
},
progress = {
duration = 5000, -- progressCircle duration
label = 'Using My Cool New Consumable', -- progressCircle label
},
required = {
active = true, -- activates a return item from this consumable item
items = { -- this can be multiple items or just a single one
{name = 'required_item_for_my_new_consumable', label = 'Required Item For My New Consumable',},
},
},
returned = {
active = false, -- activates a return item from this consumable
items = { --this can be multiple items or just a single one
{name = 'returned_item_from_my_new_consumable', label = 'Returned Item From My New Consumable',},
},
},
anim = {
dict = 'amb@world_human_smoking@male@male_a@enter', -- name of anim dict used
anim = 'enter', -- name of anim used
flag = 49, -- flag number
props = { -- prop settings
{
model = 'prop_sh_joint_01', -- name of prop model used
bone = 47419, -- bone index used
pos = vec3(0.015, -0.009, 0.003), -- vec3 value for prop position
rot = vec3(55.0, 0.0, 110.0), -- vec3 value for prop rotation
},
},
},
},
}
Last updated