Skip to main content

GetScriptConfig

This function was added in DSL 5

Description

Returns the config object belonging to the current collection.

It will behave just like the one returned by LoadConfigFile.

function GetScriptConfig() --[[ ... ]] end

Parameters

None.

Return Values

  • config: userdata - The config object belonging to the current collection.

Example

local config = GetScriptConfig()
if IsConfigMissing(config) then
print("Config is missing!")
else
print("Config is loaded successfully!")
end