Configuration
Config = {}
-- 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
-- @StartPrice - 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 },
}
-- Prices will go up or down - Trade System
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
}
Config.Target = {
settarget = true,
targetName = "qb-target" -- "ox_target" or "qb-target"
actiondistance = 2.0,
}
Config.Settings = {
actiondistance = 1.5, -- Interact distance
markerdistance = 10.0, -- Marker distance
markertextdist = 3.0, -- Marker text distance
}
Config.ExtraSettings = {
markerid = 1, -- Marker ID
markerscale = { x = 0.4, y = 0.4, z = 0.4 }, -- Marker scale
markercolor = { r = 50, g = 200, b = 160 }, -- Blue = r = 50, g = 120, b = 190 --- Main = r = 220, g = 160, b = 40
}
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,
},
{
sellLabel = "Innocence Pawn Shop",
pos = vector3(183.09, -1320.05, 28.3),
pedmodel = { x = 182.6437, y = -1319.8206, z = 29.30, h = 242.90 },
pedhash = "a_f_m_skidrow_01",
useonlytarget = false,
showPed = true,
showMarker = true,
showText = false,
showNotification = false,
showBlip = true,
blipsprite = 605,
blipcolor = 0,
blipdisplay = 4,
blipscale = 0.8,
},
{
sellLabel = "Prosperity Pawn Shop",
pos = vector3(-1459.42, -414.11, 34.75),
pedmodel = { x = -1459.27, y = -413.55, z = 35.75, h = 166.04 },
pedhash = "a_f_m_skidrow_01",
useonlytarget = false,
showPed = true,
showMarker = true,
showText = false,
showNotification = false,
showBlip = true,
blipsprite = 605,
blipcolor = 0,
blipdisplay = 4,
blipscale = 0.8,
},
-- Add as many locations as you want - Copy/Paste
}
Config.Lang = {
["keypressed"] = "Press ~INPUT_CONTEXT~ to open Pawn Shop",
["boxtext"] = "~g~[E]~w~ - Pawn Shop",
["buy_pawnshop"] = "You have bought: ",
["sold_item"] = "You have sold: ",
["no_money"] = "Not enough money!",
["no_item"] = "You don't have enough items!",
["not_available"] = "This item is no longer available!",
["cannot_sold"] = "This item cannot be sold!",
["invalid_amount"] = "Invalid quantity!",
}
Last updated