Garry's Mod Wiki

GM:OnLuaError

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

Description

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

Modify menu state Lua code at your own risk!

Arguments

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.

Page Links


Special Pages


Wikis

?

Render Time: 35ms

DB GetPage 3
Generate Html 8
SaveChanges (1) 14
Render Body 0
Render Sidebar 7