Upgrades

This represents the Upgrades configuration file (sh_upgrades.lua)

You can always add, edit or remove the current levels.

The required reputation is the reputation of the dealer the upgrade is accesible from.

To disable stash house break ins set breakInStash in security upgrades to false.

Config.Upgrades = { --Available upgrades for the gang
    ["stashhouse"] = { --Upgrade name
        title = "Stash House", --Upgrade title
        description = "Increase the size of your stash houses in your zones", --Upgrade description
        levels = { --Upgrade levels
            [1] = { --Upgrade level
                slots = 20, --Stash house slots
                weight = 5000, --Stash house weight
                price = 5, --Upgrade price
                requiredReputation = 0, --Required reputation to buy the upgrade
            },
            [2] = { --Upgrade level
                slots = 30, --Stash house slots
                weight = 10000, --Stash house weight
                price = 10, --Upgrade price
                requiredReputation = 0, --Required reputation to buy the upgrade
            },
            [3] = { --Upgrade level
                slots = 50, --Stash house slots
                weight = 25000, --Stash house weight
                price = 25, --Upgrade price
                requiredReputation = 0, --Required reputation to buy the upgrade
            },
        }
    },
    ["grandma"] = { --Upgrade name
        title = "Grandma", --Upgrade title
        description = "Increase the availability of grandmas in your zones", --Upgrade description
        levels = { --Upgrade levels
            [1] = { --Upgrade level
                cooldown = 60, --Grandma cooldown
                healPrice = 1000, --Grandma heal price
                price = 5, --Upgrade price
                requiredReputation = 0, --Required reputation to buy the upgrade
            },
            [2] = { --Upgrade level
                cooldown = 30, --Grandma cooldown
                healPrice = 500, --Grandma heal price
                price = 40, --Upgrade price
                requiredReputation = 0, --Required reputation to buy the upgrade
            },
            [3] = { --Upgrade level
                cooldown = 15, --Grandma cooldown
                healPrice = 250, --Grandma heal price
                price = 25, --Upgrade price
                requiredReputation = 0, --Required reputation to buy the upgrade
            },
        }
    },
    ["intel"] = { --Upgrade name
        title = "Intel Gathering", --Upgrade title
        description = "Increase the chance of receiving various intel about other gang activities", --Upgrade description
        levels = { --Upgrade levels
            [1] = { --Upgrade level
                shopChance = 5, --Chance of receiving intel
                price = 5, --Upgrade price
                requiredReputation = 0, --Required reputation to buy the upgrade
            },
            [2] = { --Upgrade level
                shopChance = 10, --Chance of receiving intel
                price = 10, --Upgrade price
                requiredReputation = 10, --Required reputation to buy the upgrade
            },
            [3] = { --Upgrade level
                shopChance = 15, --Chance of receiving intel
                price = 25, --Upgrade price
                requiredReputation = 25, --Required reputation to buy the upgrade
            },
        }
    },
    ["security"] = { --Upgrade name
        title = "Security", --Upgrade title
        description = "Increase the security of your stash houses in your zones", --Upgrade description
        levels = {  --Upgrade levels
            [1] = { --Upgrade level
                price = 5, --Upgrade price
                requiredReputation = 0, --Required reputation to buy the upgrade
                breakInStash = { --Break in stash
                    lockTime = 10, --Lock time
                    requiredItem = "lockpick", --Required item
                    removeItemOnFail = 50, --Remove item on fails
                    minigame = function() --Minigame function
                        return exports["peuren_minigames"]:StartLockpick(math.random(6, 8), math.random(8, 10), math.random(70, 90))
                    end,
                },
            },
            [2] = {
                price = 10, --Upgrade price
                requiredReputation = 10, --Required reputation to buy the upgrade
                breakInStash = { --Break in stash
                    lockTime = 10, --Lock time
                    requiredItem = "lockpick", --Required item
                    removeItemOnFail = 50, --Remove item on fails
                    minigame = function() --Minigame function
                        return exports["peuren_minigames"]:StartLockpick(math.random(6, 8), math.random(8, 10), math.random(70, 90))
                    end,
                },
            },
            [3] = {
                price = 25, --Upgrade price
                requiredReputation = 25, --Required reputation to buy the upgrade
                breakInStash = { --Break in stash
                    lockTime = 10, --Lock time
                    requiredItem = "lockpick", --Required item
                    removeItemOnFail = 50, --Remove item on fails
                    minigame = function() --Minigame function
                        return exports["peuren_minigames"]:StartLockpick(math.random(6, 8), math.random(8, 10), math.random(70, 90))
                    end,
                },
            },
        }
    },
    ["privacy"] = { --Upgrade name
        title = "Intel Privacy", --Upgrade title
        description = "Secure the data of your activites on the Dark Web from other gangs", --Upgrade description
        levels = { --Upgrade levels
            [1] = { --Upgrade level
                chanceDecrease = 5, --Chance decrease
                price = 5, --Upgrade price
                requiredReputation = 0, --Required reputation to buy the upgrade
            }, 
            [2] = { --Upgrade level
                chanceDecrease = 10, --Chance decrease
                price = 10, --Upgrade price
                requiredReputation = 10, --Required reputation to buy the upgrade
            },
            [3] = { --Upgrade level
                chanceDecrease = 15, --Chance decrease
                price = 25, --Upgrade price
                requiredReputation = 25, --Required reputation to buy the upgrade
            },
        }
    },
    ["refinery"] = { --Upgrade name
        title = "Refinery", --Upgrade title
        description = "Increase the efficiency of refineries in your zones", --Upgrade description
        levels = { --Upgrade levels
            [1] = { --Upgrade level
                timeDecrease = 5, --Time decrease
                price = 5, --Upgrade price
                requiredReputation = 0, --Required reputation to buy the upgrade
            },
            [2] = { --Upgrade level
                timeDecrease = 10, --Time decrease
                price = 10, --Upgrade price
                requiredReputation = 10, --Required reputation to buy the upgrade
            },
            [3] = { --Upgrade level
                timeDecrease = 15, --Time decrease
                price = 25, --Upgrade price
                requiredReputation = 25, --Required reputation to buy the upgrade
            },
        }
    },
}

--This function will be called from the client side
Config.GrandmaHealFunction = function() --Grandma heal function
    TriggerEvent("hospital:client:Revive")
end

Last updated