Exports

Series of exports that can be useful and are good for usage of 3rd party scripts

Client Exports

chevron-righttoggleShophashtag

Toggle the shop using the export "toggleShop"

-- will open shop:
exports["bs-gemshop"]:toggleShop(true)

-- will close shop:
exports["bs-gemshop"]:toggleShop(true)

Server Exports

chevron-rightupdateGemshashtag

Give a player gems or remove them using the export "updateGems"

-- source: number
-- option: string "add" | "remove"
-- gems: number
-- return: boolean

-- this will add 200 gems:
local success = exports["bs-gemshop"]:updateGems(source, "add", 200)

-- this will remove 200 gems:
local success = exports["bs-gemshop"]:updateGems(source, "remove", 200)
chevron-rightfetchGemshashtag

Check how many gems as player has using the export "fetchGems"

-- source: number
-- return: number

local gems = exports["bs-gemshop"]:fetchGems(source)

Last updated