Skip to content
/SLASHPLAY

How to reload scripted entities in GMod

Type lua_reloadents in the server console to reload every scripted entity's Lua code without a map change. Respawn existing ones to get every change.

lua_reloadents

Reloads all scripted entities from their Lua files.

lua_reloadents

Examples

lua_reloadents

Reload SENT code.

What it does

Re-reads the code of scripted entities so changes show up without a map change. Existing entities may need to be respawned to pick up everything.

The game's own description: Reload all scripted entities

Run it on your server

On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to garrysmod/cfg/server.cfg. New to this? Start a GMod server first.

Your own
GMod server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.