Lua reloadents
From GMod Wiki
| | Go to: Console |
| Command | |
| Syntax | lua_reloadents |
| Available On: | |
| Part Of: | Garry's Mod |
| Description: | |
| A console command that reloads all SWEPs and SENTs. | |
Examples
| Description | Reload all entites. |
|---|---|
| Used on | |
| Code | lua_reloadents |
| Output | All entities are reloaded. |
Additional Notes
- This reloads all entites, but NOT updates the spawnmenu. So, if you will add a new weapon and use lua_reloadentities, it won't appear in spawnmenu (You have to rejoin map or server) but you can get the SWEP via give or ent_create console commands.
- You can't use this to reload unregistered entities. If you installed an addon while the game was running and use this command you will still have to restart the game.
- Old states of entities stay on map - only duplicates create. If the commands is used too much, some of entities will not work and will large amount of entities cause lags.