NPC Shops

Configuration

Configuration for NPC Shops.

View in store

Configuration (config.lua)

OptionDescription
Config.BridgeFramework, notifications, target, text UI, inventory, society ('auto' detects them)
Config.UseDistanceMax distance from a store NPC to use the store
Config.MaxQuantityMost of one item that can be bought in one checkout
Config.TextUIKeyKey for stores with Interaction = 'textui' (default E)
Config.StoresThe stores – every option is explained above the table in config.lua

Item example:

lua
{ name = 'water_bottle', priceType = 'fixed', basePrice = 50 },
{ name = 'pistol_ammo', priceType = 'dynamic', basePrice = 200, dynMode = 'percent', dynValue = 2, dynScope = 'global' },

Last updated