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