
π§°Salvaged Crates
Players have a chance to find a salvaged crate that they can place down and open to obtain rewards that you define
The prop is the prop name of the chest object
You can define a required item to open the salvaged chest (usually a chest key)
You can define progressCircle settings for duration, label , animation and prop used
You can define random rewards and their respective amounts in the
Rewards
table
Config.SalvagedCrates = {
info = {
prop = 'tr_prop_tr_chest_01a', -- salvaged crate prop name
openIcon = 'fa-solid fa-key', -- target icon open
openLabel = 'Open Treasure Chest', -- target label open
closeIcon = 'fa-solid fa-x', -- target icon remove
closeLabel = 'Remove Treasure Chest', -- target label rememove
distance = 3.0, -- target distance
},
requiredItem = { -- define required item settings
enabled = true, -- enable a required item
name = 'chestkey', -- name of required item
breakChance = 20, -- chance for required item to break when using
},
progress = { -- define progressCircle settings
duration = 3000, -- duration
label = 'Placing treasure chest', -- label
anim = { -- define animation settings
anim = 'anim@heists@box_carry@', -- animation name
dict = 'idle', -- animation dict name
flag = 49, -- flag number
},
prop = { -- define prop settings
model = 'tr_prop_tr_chest_01a', -- prop model
bone = 18905, -- bone index
pos = vec3(0.16, -0.15, 0.23), -- prop position
rot = vec3(-120.0, 120.0, 0.0), -- prop rotation
},
},
rewards = { -- define rewards table with min and max amounts (if enabled the XP level will determine the final return amount based from values set below)
{name = 'whiskey', amount = {min = 1, max = 3,}, },
{name = 'iron', amount = {min = 1, max = 3,}, },
{name = 'glass', amount = {min = 1, max = 3,}, },
{name = 'bandage', amount = {min = 1, max = 3,}, },
{name = 'lighter', amount = {min = 1, max = 3,}, },
{name = 'binoculars', amount = {min = 1, max = 3,}, },
{name = 'goldchain', amount = {min = 1, max = 3,}, },
{name = 'goldbar', amount = {min = 1, max = 3,}, },
},
}
Last updated