Pawnshops

Guide for editing the pawnshops functionality.

This file can be located in peuren_chopshop\shared\sh_main.lua.

You can edit the pre-configured items and options or add new items by following the example.

All current market rates and data can be found in peuren_chopshop/pawnshop.json file.

Config.PawnShop = {
    ["basic"] = {--Basic dealer pawnshop
        Currency = {--Currency that is used to pay/purchase things at the dealers pawnshop
            account = 'cash',-- Supported types: black_money, bank, cash
            accountItem = {
                enabled = false,--Is currency to pay/purchase an item?
                itemName = 'markedbills'--The currency item that is used to pay/purchase things in the pawnshop
            }
        },

        Reputation = { --How much to lower the price for the items that they're buying or increase the price for the items that they're selling. Use false to disable
            minRep = 3, --Minimum reputation required.
            multiplier = 1 --How much to change the price in percentage. Final Price = actual price +- actual price * ((reputation - minimumReputation) * multiplier / 100) 
        },

        Market = {
            SaleAge = 86400, --In seconds. How long sales affect the item prices.
            MarketCycle = 600,--In seconds. How frequently item prices are updated.
            PriceChangeFactor = 0.5, --Intesnity of the price fluctuations.
        },

        Buy = {
            -- {name = "item spawn name", price = item price },
            { name = "WEAPON_DIGISCANNER", price = 1000 },
            { name = "toolbox", price = 200 },
        },

        Sell = {
            -- {name = "item spawn name", min = item min price, max = item max price },

            { name = "boot", min = 800, max = 1000 },
            { name = "bonnet", min = 800, max = 1500 },
            { name = "door", min = 800, max = 3000 },
            { name = "wheel", min = 800, max = 2500 },
            { name = "engine", min = 800, max = 4000 },
        }
    },
}

Last updated