
π½οΈConsumables
Adding more consumables to the script is easily achieved via the
consumables.luafileConsumable items can have required items to use and return items from using them
You can define items to have benefits like a health boost, armour increase, reduce stress levels and heal injuries
Config.MedicalConsumables = {
['bandage'] = { -- the key is the item name
health = { -- add health
enabled = true, -- enable this particular effect for this item
amount = 25, -- amount of effect applied (set to 0 for nothing)
},
armour = { -- add armour
enabled = true, -- enable this particular effect for this item
amount = 25, -- amount of effect applied (set to 0 for nothing)
},
stress = { -- remove stress
enabled = true, -- enable this particular effect for this item
amount = 25, -- amount of effect applied (set to 0 for nothing)
},
healing = { -- heal injuries
enabled = true, -- enable this particular effect for this item
type = 'partial', -- type of effect full or partial
},
required = { -- required item settings
active = false, -- activates a required item for this consumable item
items = { -- item name and label
{name = '', label = '',},
},
},
returned = { -- returned item settings
active = false, -- activates a return item from this consumable item
items = { --item name
'',
},
},
progress = { -- progress circle settings
duration = 5000, -- progressCircle duration
label = 'Using bandage', -- progressCircle label
anim = { -- animation settings
dict = 'missheistdockssetup1clipboard@idle_a', -- name of anim dict used
anim = 'idle_a', -- name of anim used
flag = 49, -- flag number
props = { -- prop settings
{
model = 'prop_rolled_sock_02', -- name of prop model used
bone = 47419, -- bone index used
pos = vec3(-0.14, -0.14, -0.08), -- vec3 value for prop position
rot = vec3(-50.0, -50.0, 0.0), -- vec3 value for prop rotation
},
},
},
},
},
}Last updated