Skip to content

Installation & configuration ​

Requirements ​

Use a OneSync server with server-side player ped and position support. Keep np_softrestart running throughout maintenance. The coordinator has no required framework, database connector or NUI build. Optional bridges activate only when supported resources are running.

  1. Place the resource in your server resources directory as np_softrestart.
  2. Edit shared/config.lua. Allow only resources tested for reload with connected players.
  3. Grant the management ACE to the intended administrator principal, then start the coordinator.
cfg
add_ace group.admin np_softrestart.manage allow
add_ace resource.np_softrestart command.refresh allow
ensure np_softrestart

The console can manage maintenance. Player commands require Config.Ace, even when np_admin is installed. Server export callers require their own explicit AllowedInvokers entry.

lua
Config.Resources = {
    ['my_restart_safe_script'] = true,
}
Config.KeepRunning = { ['my_identity_service'] = true }
Config.AllowedInvokers = { ['my_deployer'] = true }
-- Consumer -> providers for dependencies absent from resource manifests.
Config.ExtraDependencies = {
    ['my_restart_safe_script'] = { 'my_identity_service' },
}

Use actual resource names, not category folders or wildcard patterns. Protected foundations cannot be opted into restart through configuration. The allowlist is not evidence of compatibility: verify the target's cleanup, connected-player initialization, timers, transactions and dependants yourself.

Controls ​

Setting Default Purpose
Command softrestart Management command
Ace np_softrestart.manage Player management permission
Resources {} Explicit reload allowlist
KeepRunning {} Additional protected resources
AllowedInvokers {} Server resources permitted to control runs
ExtraDependencies {} Additional consumer-to-provider dependencies
Integrations All four enabled Optional inventory, vehiclehandler, anticheat, admin bridges
PrepareTimeoutMs 15000 Adapter preparation budget
ClientTimeoutMs 30000 Client readiness budget
ResourceTimeoutMs 15000 Resource lifecycle budget
DeployTimeoutMs 60000 Staged deployment hold budget
MaxResources 64 Maximum targets per run
MaxPlayers 2048 Maximum captured participants

Config.Client supplies Title, Message, FailedMessage, Phases and CollisionTimeoutMs for maintenance presentation. Translate those strings for the players on your server; the German guide includes an example. Keep configuration and adapters outside escrowed core changes.