is there any way to update lua script without restarting server ??
Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
update lua script without restarting
6 Antworten![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)
is there any way to update lua script without restarting server ??
![cs2d cmd](img/i_codehelp.png)
dofile("sys/lua/server.lua")
![cs2d cmd](img/i_codehelp.png)
![user](img/i_friend.png)
![cs2d lua cmd](img/i_codehelp.png)
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
![cs2d cmd](img/i_codehelp.png)
![cs2d cmd](img/i_codehelp.png)
You meant
![cs2d cmd](img/i_codehelp.png)
![](img/smiles/embarrassed.gif)
![](img/smiles/wink.gif)
![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)