Skip to main content

GetScriptName

This function was added in DSL 4

Description

Returns the name of script or the current script.

function GetScriptName(script) --[[ ... ]] end

Parameters

  • script?: userdata|script|nil - (Optional) The script object. userdata if checked with type(script), script if checked with type2(script).

Return Values

  • collection: string - The name of the script's collection.

Example

print(GetScriptName())