util.monitor.unregister
Client
Removes a previously registered custom stat
Syntax
local status = util.monitor.unregister(
id
)Parameters
| Type | Name | Description |
|---|---|---|
string | id | Unique identifier of the custom stat to remove |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true if the stat was found and removed, false otherwise |
Examples
util.monitor.unregister("my_resource:entity_count")util.monitor.unregister("my_resource:tick_rate")
util.monitor.register("my_resource:tick_rate", "Tick Rate (Updated)", function()
return tick_system.get_rate()
end, util.monitor.stat_format.QUANTITY)