RESOURCE INJECTION

StartResource

Starts a resource.

Syntax

local ok = ONYX.StartResource(resourceName)

Parameters

  • resourceName (string) — Target resource identifier.

Return(s)

state (boolean) — whether the resource was restarted successfully.

Behavior

  • Re-starts the requested resource through the ONYXS resource stopper mechanism.
  • Do not use it on a resource that has not been stopped.

Example(s)

ONYX.StartResource("anticheat")