Garry's Mod Wiki

RunStringEx

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

Description

Alias of RunString.

We advise against using this. It may be changed or removed in a future update. Use RunString instead.

Arguments

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.

Returns

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