Exports

Client

DisableShop

Disables a specific shop by its ID

Usage:

exports['envi-shops']:DisableShop(shopID, cooldownTime)
-- Disables the '24/7 - Strawberry' shop until it is enabled again
exports['envi-shops']:DisableShop('24/7 - Strawberry')
-- Disables the '24/7 - Strawbeery' shop for 300 seconds
exports['envi-shops']:DisableShop('24/7 - Strawberry', 300)

Parameters:

  • shopID (string): The ID of the shop to disable.

  • cooldownTime (number): The cooldown time in seconds before the shop is auto-enabled again.

EnableShop

Enables a specific shop by its ID.

Usage:

exports['envi-shops']:EnableShop(shopID)
-- Enables the '24/7 - Strawberry' shop, if it is disabled
exports['envi-shops']:EnableShop('24/7 - Strawberry')

Parameters:

  • shopID (string): The ID of the shop to enable.

DisableAllShops

Disables all shops in the config file

Usage:

exports['envi-shops']:DisableAllShops(cooldownTime)
-- Disables all shops for 600 seconds (10 minutes)
exports['envi-shops']:DisableAllShops(600)

Parameters:

  • cooldownTime (number): The cooldown time in seconds before the shops are auto-enabled again.

EnableAllShops

Enables all shops

Usage:

exports['envi-shops']:EnableAllShops()

Last updated