NPC Vendor
Global settings
cfg.npcVendor = {
enabled = true, -- master switch for all NPC vendors
npcModel = `a_m_m_business_01`, -- default ped model
pricingMultiplier = 3.0, -- default sell price = item supplyPrice Γ this
vendors = { --[[ list of vendors, see below ]] },
}A vendor
vendors = {
{
name = 'Paleto Bay', -- label shown only in the admin dashboard
npcModel = `a_m_m_business_01`, -- optional per-vendor model override
pricingMultiplier = 3.0, -- optional per-vendor multiplier override
locations = { -- van parks/sells at one of these (picked per spawn)
vec4(-280.70, 6034.97, 30.52, 231.17),
},
schedule = {
enabled = true,
mode = 'real', -- 'real' (clock) | 'game' (in-game hour)
real = { -- cron windows when mode = 'real'
{ open = '0 19 * * *', close = '0 23 * * *' },
},
game = { -- hour windows when mode = 'game'
-- { startHour = 19, stopHour = 23 },
},
},
items = { -- what this vendor sells
{ name = 'WEAPON_PISTOL' }, -- uses pricingMultiplier
{ name = 'WEAPON_SMG', price = 12000 }, -- fixed price override
{ name = 'ammo-9' },
},
},
}Fields
Field
Required
Description
Schedules
Picking valid locations
Last updated