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

Function

refreshResources

Scans the resources/ folder for new and changed resources. In the current server version the function is not wired up yet and returns false with a warning.

Syntax

bool refreshResources([bool refreshAll = false])

Arguments

refreshAllbool, optional = false
true = recheck every resource.

Differences from MTA:SA

  • These MTA:SA arguments are not here: resource targetResource = nil

In MTA:SA

refreshResources(bool refreshAll = false, resource targetResource = nil)

Returns

true on success.

Example

refreshResources(true)

Notes

A new resource folder can then be started: startResource(getResourceFromName("name")). A resource with <include> starts its dependencies too.

See also