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 withtype(script)
,script
if checked withtype2(script)
.
Return Values
collection
:string
- The name of the script's collection.
Example
print(GetScriptName())