diff --git a/server/ControlScripts/OfficeRoomScope.php b/server/ControlScripts/OfficeRoomScope.php index f86b4bd..16d927f 100644 --- a/server/ControlScripts/OfficeRoomScope.php +++ b/server/ControlScripts/OfficeRoomScope.php @@ -28,6 +28,26 @@ ], function($params) { return $this -> lamp_switch("computer_table_lamp", false); }); + + $this -> add_action_script([ + "alias" => "craft_table_lamp_on", + "name" => "ВКЛ крафт. лампу", + "icon" => '', + "description" => "Включить настольную лампу на столе для крафта", + "author" => "Eugene Sukhodolskiy" + ], function($params) { + return $this -> lamp_switch("craft_table_lamp", true); + }); + + $this -> add_action_script([ + "alias" => "craft_table_lamp_off", + "name" => "ВЫКЛ крафт. лампу", + "icon" => '', + "description" => "Выключить настольную лампу на столе для крафта", + "author" => "Eugene Sukhodolskiy" + ], function($params) { + return $this -> lamp_switch("craft_table_lamp", false); + }); } public function register_regular_scripts(): void {