Garry's Mod Wiki

Garry's Mod Wiki

  boolean ProtectedCall( function func, ... )

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

1 function func
Function to run
2 vararg arguments
Arguments to call the function with.

Returns

1 boolean
Whether the function executed successfully or not

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...