Garry's Mod Wiki


string RunString( string code, string identifier = "RunString", boolean handleError = true )


Evaluates and executes the given code, will throw an error on failure.

Local variables are not passed to the given code.


1 string code
The code to execute.
2 string identifier = "RunString"
The name that should appear in any error messages caused by this code.
3 boolean handleError = true
If false, this function will return a string containing any error messages instead of throwing an error.


1 string
If handleError is false, the error message (if any).

Page Links

Special Pages



Render Time: 39ms

DB GetPage 3
Generate Html 8
SaveChanges (1) 13
Render Body 0
Render Sidebar 12