is there any way to update lua script without restarting server ??
Forum
CS2D Scripts update lua script without restartingupdate lua script without restarting
6 replies 1
is there any way to update lua script without restarting server ??
luareset
dofile("sys/lua/server.lua")
changemap
The problem with this is that it won't clean up the Lua VM and old declared variables will stay there. So this might lead to confusing results but it really depends on how you work and what you do.
Therefore map change or server restart (both is technically the same) is recommended.
There's also luareset to reset the Lua VM. Afterwards you could load your scripts again manually. I think luareset leads to crashes/problems in some cases though.
You meant lua?
1