Events & Exports
Manage winery properties programmatically, respond to lifecycle and ownership events, and use the included administration commands.
Export functions
Create, remove or update winery instances from another server resource.
insertInstanceCreates a new winery instance at the specified position.
xnumberynumberznumberpricenumbernamestringPromiseremoveInstanceRemoves an existing winery instance.
idnumberPromiseresetInstanceResets an instance and clears its ownership-related state.
idnumberPromisesetInstancePriceUpdates the purchase price of an existing instance.
idnumberpricenumberPromisesetInstanceNameChanges the display name of an existing instance.
idnumbernamestringPromisesetInstancePositionUpdates the position of an existing instance.
idnumberxnumberynumberznumberPromiseServer events
React to winery ownership changes and player lifecycle activity from another resource.
onWineryQuitTriggered when a player disconnects while inside a winery instance.
playerSourcenumberidnumberxnumberynumberznumberonWineryTradeTriggered when a player transfers a winery to another player.
playerSourcenumberidnumbertargetSourcenumberonWineryBoughtTriggered immediately after a player purchases a winery.
playerSourcenumberidnumberonWineryEnterTriggered when a player enters a winery instance.
playerSourcenumberidnumberonWineryLeaveTriggered when a player leaves a winery instance.
playerSourcenumberidnumberAdministration commands
The included commands provide quick in-game access to common winery management actions.
/winery_createCreate a winery at your current position.
/winery_removeRemove an existing winery.