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

id

string

Unique shop identifier

label

string

Display name

coords

vector3

Shop location

blip

table

Map blip settings

items

table[]

Items for sale

access

table/nil

Access restrictions

Shop Items

Access Control

Opening Shop Programmatically

Registering Shop at Runtime

Last updated