Shops — Server

GetResourceName

Returns the shops resource name.

local name = Bridge.Shops.GetResourceName()
-- Returns: string (always "default")

Description: Returns the name of the Shops module resource. Used for internal identification. Always returns "default" for the built-in Shops module.

CreateShop

Creates/registers a shop definition.

Bridge.Shops.CreateShop(shopId, shopData)
ParameterTypeDescription
shopIdstringUnique shop identifier
shopDatatableShop definition with items, name, etc.

OpenShop

Opens a shop for a player.

Bridge.Shops.OpenShop(src, shopData)
ParameterTypeDescription
srcnumberPlayer server ID
shopDatatableShop definition