PivityGmodStore

Adding/editing upgrades

It requires simple Lua knowledge to add or edit the functionality of upgrades.

Editing description, icons and prices does NOT require any knowledge.

Navigate to lua/ch_adv_mayor/shared/config/upgrades and open any of the files.

There's the default name, icon and description for every upgrade.

They then have a table with the Levels and their respective price, description and upgrade function.


The UpgradeFunction for each of the levels is what happens when you upgrade to that level. The RemoveFunction at the bottom is what happens when the upgrade is removed (usually when the mayor is demoted or leaves).

The MaxLevel attribute is the maximum level you can upgrade this to. It should always correspond to how many sub-tables there are under Levels.

Can't find what you're looking for?

Contact support