
π²Selling
Player can sell the various items they find from ship wreck crates
The coords for the ped must be
vector4
Define blip settings if enabled
Define multiple categories and sellable items in the
Selling
table the first key is the category name the second key is the sellable item nameDefine the minimum and maximum values for the item sold
Config.Selling = {-- define items that can be sold at the selling ped
Ped = { -- define ped settings
model = 'a_m_m_business_01', -- ped model
coords = vector4(-315.76, 6194.35, 31.56, 42.68), -- 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 Diving Treasures', -- target label
distance = 3.0, -- target distance
zone = { -- define zone settings
debug = true, -- debug zone
radius = 5.0, -- zone radius
},
},
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 Diving Treasures', -- blip title
},
Selling = {-- define item categories and items that can be sold at the selling ped
['Common Treasures'] = { -- the key is the category name
['seaglass'] = { -- 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 = 25, -- minimum value
max = 50, -- maximum value
},
},
--add more sellable items below
},
['Rare Treasures'] = { -- the key is the category name
['sharktoothnecklace'] = { -- 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 = 25, -- minimum value
max = 50
},
},
--add more sellable items below
},
['Special Treasures'] = { -- the key is the category name
['spyglass'] = { -- 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 = 25, -- minimum value
max = 50
},
},
--add more sellable items below
},
--add more sale categories below
},
}
Last updated