Events & Exports
Manage farmhouse properties programmatically, respond to lifecycle and ownership events, and use the included administration commands.
Export functions
Create, remove or update farmhouse interiors from another server resource.
insertInteriorCreates a new farmhouse interior at the specified position.
xnumberynumberznumberpricenumbernamestringPromiseremoveInteriorRemoves an existing farmhouse interior.
idnumberPromiseresetInteriorResets an interior and clears its ownership-related state.
idnumberPromisesetInteriorPriceUpdates the purchase price of an existing interior.
idnumberpricenumbervoidsetInteriorNameChanges the display name of an existing interior.
idnumbernamestringvoidsetInteriorPositionUpdates the position of an existing interior.
idnumberxnumberynumberznumbervoidServer events
React to farmhouse ownership changes and player lifecycle activity from another resource.
onFarmhouseQuitTriggered when a player disconnects while inside a farmhouse instance.
sourcenumberidnumberxnumberynumberznumberonFarmhouseTradeTriggered when a player transfers a farmhouse to another player.
sourcenumberidnumbertargetSourcenumberonFarmhouseBoughtTriggered immediately after a player purchases a farmhouse.
sourcenumberidnumberAdministration commands
The included commands provide quick in-game access to common farmhouse management actions.
/farmhouse_create_atCreate a farmhouse at a specified position.
/farmhouse_createCreate a farmhouse at your current position.
/farmhouse_removeRemove an existing farmhouse.
/farmhouse_resetReset farmhouse ownership and related state.
/farmhouse_set_priceChange the purchase price of a farmhouse.
/farmhouse_set_nameChange the display name of a farmhouse.