MT Scripts Documentation

Configuration

Our shops script configuration types

Categories config

---@class ShopCategory
---@field label string
---@field icon string

---@type table<string, ShopCategory>

Shops config

---@class ShopBlip
---@field sprite? number
---@field id? number
---@field color? number
---@field colour? number
---@field scale? number

---@class ShopItem
---@field name string
---@field price? number
---@field stock? number
---@field category? string
---@field metadata? table
---@field license? string
---@field sell? number
---@field sellToStock? boolean

---@class ShopLocation
---@field coords vector3
---@field size? vector3
---@field rotation? number
---@field distance? number
---@field ped? string
---@field heading? number

---@class ShopPayments
---@field bank? boolean
---@field cash? boolean
---@field society? boolean

---@class ShopItemsList : ShopItem[]
---@field sell? ShopItem[]

---@class ShopConfig
---@field label? string
---@field name? string
---@field description? string
---@field blip? ShopBlip
---@field items ShopItemsList
---@field locations? ShopLocation[]
---@field payments? ShopPayments
---@field model? (number|string)[]
---@field job? string
---@field grade? number

---@type table<string, ShopConfig>

On this page