Modules
Resources
Shared

Shared

With this module you will be able to gather all of your server's resources in an array

lib.resources

lib.resources(exclude)

Parameters

  • exclude: string | array

Returns

  • array: all of the resource's names

Example

local resources = lib.resources('tr_compatibilities')
 
for i, resource in ipairs(resources) do
    print(resource)
end
 
-- output ['tr_lib', 'tr_kit', 'tr_adapter', ...]