ScriptEnforcer

From GMod Wiki

Revision as of 06:27, 3 November 2011 by Noiwex (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


BlackServerIcon.png Go to:
Server Hosting

ScriptEnforcer (usually abbreviated SE) is a built-in system in Garry's Mod to prevent players from running third party scripts in your server. This disallows the use of any scripts that aren't sent to the players by the server with AddCSLuaFile.

Contents

Tip

Do not enable ScriptEnforcer on a build server!

Enabling

To enable ScriptEnforcer, add sv_scriptenforcer (1 or 2) to your autoexec config file. This is important because ScriptEnforcer will not work properly unless it is started before the map initializes. You can also enable it afterwords, but you will need to change the map for it to take effect.

If it's working properly you should get a message saying "ScriptEnforcer: We are protected" to your server's console.

Options for sv_scriptenforcer

Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox