Installation
Dependencies
QBCore Framework
ESX 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.
Config.SellableItems = {
{ ItemName = "metalscrap", Label = "Metalscrap", StartPrice = 1000 },
{ ItemName = "steel", Label = "Steel", StartPrice = 1000 },
{ ItemName = "rubber", Label = "Rubber", StartPrice = 1000 },
{ ItemName = "cryptostick", Label = "Crypto Stick", StartPrice = 1500 },
{ ItemName = "iron", Label = "Iron", StartPrice = 1000 },
{ ItemName = "plastic", Label = "Plastic", StartPrice = 1000 },
{ ItemName = "heavyarmor", Label = "Armor", StartPrice = 300 },
{ ItemName = "pistol_ammo", Label = "Ammo", StartPrice = 100 },
{ ItemName = "bandage", Label = "Bandage", StartPrice = 10 },
{ ItemName = "weapon_pistol", Label = "Pistol", StartPrice = 15000 },
{ ItemName = "weapon_appistol", Label = "AP Pistol", StartPrice = 30000 },
{ ItemName = "weapon_assaultrifle", Label = "Assault Rifle", StartPrice = 85000 },
{ ItemName = "weapon_smg", Label = "SMG", StartPrice = 50000 },
{ ItemName = "weapon_machinepistol", Label = "Tec-9", StartPrice = 30000 },
}
Pawn Shop locations
Config.Locations = {
{
sellLabel = "Clinton Pawn Shop", -- Target label
pos = vector3(412.48, 314.51, 102.00), -- Position to interact with [E]
pedmodel = { x = 412.07, y = 315.18, z = 103.13, h = 209.02 }, -- Ped and target position
pedhash = "a_f_m_skidrow_01", -- Ped hash (https://docs.fivem.net/docs/game-references/ped-models/)
useonlytarget = false, -- If false no [E]-Key interaction - only target "showPed = true"
showPed = true, -- To use target make sure "showPed = true"
showMarker = true, -- Enable/Disable drawmarker for "pos"
showText = false, -- Box text
showNotification = false, -- [E]-Key notification
showBlip = true,
blipsprite = 605,
blipcolor = 0,
blipdisplay = 4,
blipscale = 0.8,
},
}
Last updated