How to allow clientside Lua in GMod
Type sv_allowcslua 1 in the server console to let players run their own clientside Lua. Keep it at 0 on public servers, as it makes cheating easy.
sv_allowcslua
Toggles whether players may run their own clientside Lua on the server.
sv_allowcslua <0|1> Examples
sv_allowcslua 0 Recommended for public servers.
Values
| Value | What it does |
|---|---|
| 0Default | Off |
| 1 | On |
Arguments
0|1Required- 1 allows clientside Lua.
What it does
With it on, players can run client Lua with commands such as lua_run_cl and load clientside scripts, which also makes cheating scripts easy. Keep it at 0 on public servers. It overrides any gamemode setting.
The game's own description: Allow clients to run clientside addons. This will override any gamemode setting!
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.