Workshop
constWorkshop:object
Defined in: client/api.d.ts:1455
The local player’s workshop mode: the settlement build mode a workbench opens.
Type Declaration
Section titled “Type Declaration”enter()
Section titled “enter()”enter(
workbench):boolean
Puts the player in workshop mode on a workbench, wherever they stand, as ObjectReference.StartWorkshop does.
Parameters
Section titled “Parameters”workbench
Section titled “workbench”string | number
A workbench reference loaded in this game.
Returns
Section titled “Returns”boolean
False when it is no loaded workbench or the player is in workshop mode already.
getCurrent()
Section titled “getCurrent()”getCurrent():
number|null
The workbench the player’s workshop mode runs on, its reference’s form ID.
Returns
Section titled “Returns”number | null
Null outside workshop mode.
leave()
Section titled “leave()”leave():
boolean
Ends workshop mode, as leaving its menu does; the game does it on its next frame.
Returns
Section titled “Returns”boolean
False outside workshop mode.