| Argument | Data Type | Needed | Default | Description |
|---|---|---|---|---|
hangerId | number | ✅ | - | The id of the keyhanger |
enabled | boolean | ✅ | - | True to recreate the keyhanger, false to remove it from the world |
Returns
Returns
| Type | Description |
|---|---|
| boolean | true if the keyhanger status has been updated, false otherwise |
| string | nil | The 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) |
Example
Example