ProtectedCall

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

Description

Runs a function without stopping the whole script on error.

This function is similar to pcall and xpcall except the errors are still printed and sent to the error handler (i.e. sent to server console if clientside and GM:OnLuaError called).

Arguments

function func

Function to run

Returns

boolean

Were there any errors or not
Personal tools
Navigation