Garry's Mod Wiki


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


Called when a Lua error occurs, only works in the Menu realm.

Modify menu state Lua code at your own risk!


1 string error
The error that occurred.
2 number realm
Where the Lua error took place
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.