Hi, is there any way to code a whitelist into my scripts so only certain IP’s can use these scripts?
Yes there is. But the problem is that you can easiliy delete the ip whitlisting snippest, if you dont encrypt your code. There are diffrent approches to this problem, but my favorite way to do this is to set up a webserver, on which you whitlist the ip’s from the people that bought the script. Then just simply do a http reqeust in your lua script, and than check if the result is 401/403 (for not authorized or forbiden) or 200 (for everythings ok). If the authorization fails, just spam the server console, and dont register any events. Here is everything you need to do this yourself:
Make a apache2 server and whitlist certain ips:
Create an file: nano /etc/apache2/conf-available/whitlist.conf
In this file you paste in this:
<RequireAll>
Require ip x.x.x.x
</RequireAll>
Replace the x.x.x.x by the domain that bought your script. Add an additionale Require Tag for every further IP that buys your scipt.
Than activate this conf:
a2enconf whitlist
systemctl reload apache2
Lua snippet:
local body, code, headers, status = http.request("https://your-domain.com/")
if code === 200 then
...
The problem here is that you can open the script and search for a domain or a ip and than just replace it with an other adress on wich you are whitlisted. But this should keep away most of the script pirates ;). The best way that I saw is to secure it with a third party software, like P.S.U. Obfuscator (Just google and you will find it).
I hope I could help you.
No, unfortunately not
thank you very much

I use a Windows RootServer. How can i fix this
I am not in windows server but I think you can do this:
c:\Apache24\bin\httpd.exe -k install -n "VerificationServer" -f "c:\Apache24\conf-available\whitlist.conf"
Hoffe mal das funktioniert bei dir 
(for all non germans: I hope that it works out)