RunString

From Garry's Mod
Jump to: navigation, search
 RunString( )

Contents

Description

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

NOTE

Local variables are not passed to the given code.

Arguments

string code

The code to execute.

Arguments

string identifier="RunString"

The name that should appear in any error messages caused by this code.

Arguments

boolean handleError=true

If false, this function will return a string containing any error messages instead of throwing an error.

Returns

string

If handleError is false, the error message (if any).
Personal tools
Navigation