Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
UgCore is in early access. APIs can still change before the first public release. Follow progress on GitHub.
Client functions and what the server checks on every purchase.
UgCore.Shops.GetAll() -> table<string, { label, coords }> UgCore.Shops.Open(name) -> ok, errorCode, listing UgCore.Shops.Buy(name, index, count) -> ok, errorCode
GetAll
GlobalState[UgCore.Enums.GlobalState.Shops]
Open
Buy
Show fields
stock
CreateThread(function() local ok, err, listing = UgCore.Shops.Open('general_store') if ok then -- show listing.items with labels from UgCore.Items.Get(item.name) end end)
ug-core:ShopOpen
ug-core:ShopBuy