Installation

Dependencies

QBCore Framework


How to install

Drag the script in your folder, run the SQL pawnshop_market & pawnshop_stats


Trade System - Price adjustment.

Config.OnlineMarketSellTax = 0.05 -- 0.05% of 100$ = 95$ - If player sells for 100$ player will receive 95$ with tax deduction
Config.PriceAdjustment = {
    IncreaseFactor = 1.01,  -- % Price increase per sale
    DecreaseFactor = 0.995  -- % Price drop per purchase
}

Add as many items as you want. (Pawn Shop)

Price should be always higher then the online market price.

Config.PawnshopItems = {
    { ItemName = "metalscrap", Label = "Metalscrap", Price = 1500 },
    { ItemName = "steel", Label = "Steel", Price = 1500 },
    { ItemName = "rubber", Label = "Rubber", Price = 1500 },
    { ItemName = "iron", Label = "Iron", Price = 1500 },
    { ItemName = "plastic", Label = "Plastic", Price = 1500 },
    { ItemName = "cryptostick", Label = "Crypto Stick", Price = 2000 },
    { ItemName = "heavyarmor", Label = "Armor", Price = 500 },
    { ItemName = "pistol_ammo", Label = "Ammo", Price = 200 },
    { ItemName = "bandage", Label = "Bandage", Price = 30 },
}

Only these items are sellable on the online market. When the item is placed in the market for the first time we use StartPrice.


Pawn Shop locations

Last updated