ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. stopResource

Function

stopResource

ServerResourcesIdentical to MTA:SA

Stops a running resource. Its elements, timers, commands and key binds go away.

Syntax

bool stopResource(resource theResource)

Arguments

theResourceresource
The resource (a handle or a name).

Returns

true if the resource was stopped.

Example

stopResource(getResourceFromName("race"))

See also