Shops
Shops are defined in `src/shops/` directory.
Shop Definition
-- src/shops/example_shop.lua
return {
id = 'shop_247_downtown',
label = '24/7 Supermarket',
coords = vector3(25.74, -1347.3, 29.5),
blip = {
enabled = true,
sprite = 52,
color = 2,
scale = 0.8
},
items = {
{ name = 'water', price = 10 },
{ name = 'sandwich', price = 15 },
{ name = 'bandage', price = 100 }
},
access = nil -- nil = everyone can access
}Properties
Property
Type
Description
Shop Items
Access Control
Opening Shop Programmatically
Registering Shop at Runtime
Last updated