This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Change Active Status of a Script
#4
Changing the DB value won't help because the script itself will not be stopped or started.
See what the enable/disable call returns. If script is found then enable returns true, disable returns false. Otherwise you will get nil + error message.
Code:
res, err = script.enable('SCRIPT NAME HERE')
log(res, err)
Reply


Messages In This Thread
Change Active Status of a Script - by jamesng - 13.05.2021, 06:07
RE: Change Active Status of a Script - by admin - 13.05.2021, 08:18

Forum Jump: