Skip to main content
Enables or disables a keyhanger. A disabled keyhanger is removed from the world but kept in the database and stays removed after a restart, enabling it recreates it.
ArgumentData TypeNeededDefaultDescription
hangerIdnumber✅-The id of the keyhanger
enabledboolean✅-True to recreate the keyhanger, false to remove it from the world
TypeDescription
booleantrue if the keyhanger status has been updated, false otherwise
string | nilThe error message if the status has not been updated (KeyHanger not found, or Invalid keyhanger data if the keyhanger could not be recreated, for example because its model has been removed from the config)