Garry's Mod Wiki

Garry's Mod Wiki

  GM:OnLuaError( string error, string realm, table stack, string name, number id )


Called when a Lua error occurs. Doesn't run for ErrorNoHalt or Error.

On the server realm, this hook will only account for server-side errors, not client-side ones.


1 string error
The error that occurred.
2 string realm
Where the Lua error took place, "client", or "server"
3 table stack
The Lua error stack trace
4 string name
Title of the addon that is creating the Lua errors.
5 number id
Steam Workshop ID of the addon creating Lua errors, if it is an addon.

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...