# How to change pricing

## How to change prices of weapons:

Head to your `rcore_gunshop` folder\
Head to the `weaponprices.lua` file.\
To change weapon prices, change the number after the `=`. For example, to change the pistol's price from 2500 to 5000, you'd change `["WEAPON_PISTOL"] = 2500,` to `["WEAPON_PISTOL"] = 5000,`\\

## How to change price of attachments:

You can edit attachment prices in the `Config.WeaponAttachments` table which can be found in the `config.lua`. You'll see the cost being something like: `cost = tonumber(math.floor(10 * baseCost))`.\
In all cases, the base cost is `priceOfWeapon/100 * componentCostModifier * AttachmentCostGlobalModifier`. To increase the prices of attachments, you have three different options.\\

Firstly, you can increase the number before baseCost (in this example, 10) to a higher value.\\

Secondly, you can change the `componentCostModifier` which is a unique modifier for each weapon's attachments prices that can be found in `Config.WeaponsTable` table which can be found in the `config.lua`\\

Lastly, you can change `AttachmentCostGlobalModifier` which can be found in the `config.lua`. This a global modifier for all weapon attachment prices.

## How to change price of tints:

You can edit tint prices in the `Config.WeaponTints` table which can be found in the `config.lua`. You'll see the `regular` table and the `mk2` table within there.\
As the names indicate, the `regular` table is for weapons that aren't mk2, and the `mk2` table is for weapons that are mk2\
To increase the prices of tints, you have three different options.\\

Firstly, you can change the number found after `cost =` within the `Config.WeaponTints` table which can be found in the `config.lua`.\\

Secondly, you can change the tintCostModifier which is a unique modifier for each weapon's tint prices that can be found in `Config.WeaponsTable` table which can be found in the `config.lua`\\

Lastly, you can change `TintCostGlobalModifier` which can be found in the `config.lua`. This is a global modifier for all weapon tint prices.
