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

Function

getResources

ServerResourcesIdentical to MTA:SA

Returns every resource in the resources/ folder, running and stopped.

Syntax

table getResources()

Returns

A table of resource handles.

Example

addCommandHandler("zasoby", function(player)
    for _, res in ipairs(getResources()) do
        outputChatBox(getResourceName(res) .. ": " .. getResourceState(res), player)
    end
end)

See also