Selling
Player can sell the goods earnt, crafted or smelted from mining for configurable amounts
The coords for the ped must be
vector4
You can define multiple categories and sellable items in the
Selling
table
Config.Selling = {-- define items that can be sold at the selling ped
Ped = {
model = 's_m_y_dockwork_01', -- ped model
coords = vector4(759.51, -677.56, 28.84, 283.03), -- ped spawn coords must be vector4 (this is also used as the blip coordinates if enabled below)
icon = 'fa-solid fa-money-bill', -- target icon
label = 'Sell Ingots', -- target label
distance = 3.0, -- target distance
},
blip = { -- define blip settings
enabled = true, -- enable blip for this location
id = 605, -- blip id
colour = 5, -- blip colour
scale = 0.7, -- blip scale
title = 'Sell Ingots', -- blip title
},
Selling = {-- define items that can be sold at the selling ped
['Ingots'] = { -- the key is the category name
['rawsulfur'] = { -- the key is the item name that can be sold
value = { -- define the items min and max values PER UNIT (this is multiplied by the amount the player has on them)
min = 15, -- minimum value
max = 35, -- maximum value
},
},
--add more sellable items as required here
},
['Jewellery'] = { -- the key is the category name
['diamondearring'] = { -- the key is the item name that can be sold
value = { -- define the items min and max values PER UNIT (this is multiplied by the amount the player has on them)
min = 100, -- minimum value
max = 150, -- maximum value
},
},
--add more sellable items as required here
},
['Rare Minerals'] = { -- the key is the category name
['zircon'] = { -- the key is the item name that can be sold
value = { -- define the items min and max values PER UNIT (this is multiplied by the amount the player has on them)
min = 250, -- minimum value
max = 500, -- maximum value
},
},
--add more sellable items as required here
},
},
}
Last updated