New

EmeraldHost 2.0 is here: faster, more intuitive, and made for everyone - the new panel!

Learn more
Guides
How to Enable Lua Refresh on Your Garry's Mod Server
Garry's ModGarry's ModEnable Lua Refresh

How to Enable Lua Refresh on Your Garry's Mod Server

Enable and disable Lua Refresh (Auto Refresh) on a Garry's Mod server

2 min read
Oct 1, 2026

With Lua Refresh (called "Auto Refresh" in Garry's Mod) your server automatically reloads changed Lua files as soon as they are saved on the server. This lets you see changes to your addons right away without restarting the server. On our servers Lua Refresh is disabled by default.

Enable Lua Refresh

  1. Open the dashboard
    Open the dashboard of your server.

  2. Open the settings
    Navigate to the Settings.

  3. Turn on Lua Refresh
    Enable the Lua Refresh setting.

  4. Restart the server
    Save the setting and restart your server.

If you now edit a Lua file via SFTP and save it, the server reloads it automatically.

Disable Lua Refresh for live operation

We recommend turning on Lua Refresh only while you are working on your addons. According to the Garry's Mod Wiki, Auto Refresh can lag the server when editing certain Lua files triggers a cascade of further reloads. If you upload files while players are on the server, this can cause lag for them.

  1. Open the dashboard
    Open the dashboard of your server.

  2. Open the settings
    Navigate to the Settings.

  3. Turn off Lua Refresh
    Disable the Lua Refresh setting.

  4. Restart the server
    Save the setting and restart your server.

Limitations of Lua Refresh

Not every change is picked up automatically. Auto Refresh only works for files that the game or the gamemode includes automatically:

  • files in autorun
  • effects, entities and weapons
  • the gamemode's init.lua and cl_init.lua and the files included from them

The following changes are not reloaded automatically:

  • files included dynamically via include or AddCSLuaFile – depending on the case, they are not reloaded at all or only partly
  • changes to the base file of a weapon or entity: weapons and entities that build on it only pick up the change once they are reloaded themselves
  • on Linux servers, a system limit for file watching can be reached when there are very many files. Individual files are then not reloaded automatically

In these cases, restart your server so the changes are loaded.

Written byEmeraldHost Team
Last updated on Oct 1, 2026 Edit on GitHub

Did this article help you?

Your feedback helps us improve our guides.

Help shape the guides

€10.00 in credit for every new guide, €5.00 for every improvement.

Contact Support

Create a support ticket and our team will get back to you as soon as possible – personal and professional.

Go to Support
1257 members online

Discord Community

Connect with other players, get quick help from the community, and stay up to date with the latest news.

Join Discord
Garry's Mod

Ready to get started?

Rent your Garry's Mod Server now

Join our Discord community 1257 members online right now