DependencyAutoRestart
Automatically restarts all resources that has the resource using DependencyAutoRestart
as dependency.
Important: Ensure that no recursive effects appears if one two resources having each other as dependency. This will be solved in a future version.
Example
Add the following code snippet to your resource at this point where your resource is started and initialized.
---@type DependencyAutoRestartApi
local resource_auto_restart_api = exports.nss_libs:getDependencyAutoRestartApi(GetCurrentResourceName())
resource_auto_restart_api.reloadDependencies()
TODOs
Last updated
Was this helpful?