Hi
Here is the output of the your test code - it's working
I found the error in my earlier code too .. working function below
Many thanks
Kind Regards
James
Here is the output of the your test code - it's working
Code:
TEST 13.05.2021 18:43:24
* arg: 1
* bool: true
* arg: 2
* nil
I found the error in my earlier code too .. working function below
Code:
-- Change active status of script
function enableScript(scriptname, active)
if active == true then
script.enable(scriptname)
log('Script "' .. scriptname .. '" is active')
else
script.disable(scriptname)
log('Script "' .. scriptname .. '" is disabled')
end
end
Many thanks
Kind Regards
James