Garry's Mod Wiki

GM:OnClientLuaError

  GM:OnClientLuaError( string error, Player ply, table stack, string name )

Recently Added

This was recently added in version (2025.05.16). It might only be available on the Dev Branch right now.

Description

Called when a Lua error occurs on a client.
This hook allows server-side code to detect and respond to client-side errors.

Arguments

1 string error
The error that occurred.
2 Player ply
The player whose client caused the error.
3 table stack
The Lua error stack trace
4 string name
Title of the addon that is creating the Lua errors, or "ERROR" if addon is not found.

Returns

OSZAR »