Revision Difference
GM:OnClientLuaError#564753
<cat>hook</cat>
<function name="OnClientLuaError" parent="GM" type="hook">
<description>
Called when a Lua error occurs on a client.
This hook allows server-side code to detect and respond to client-side errors.
Called on the server when a Lua error occurs on a client and is sent to the server.
This hook allows server-side code to detect and log client-side errors.⤶
⤶
See <page>GM:OnLuaError</page> for a hook that captures Lua errors directly within its [realm](States).⤶
</description>
<realm>Server</realm>
<added>2025.05.16</added>
<args>
<arg name="error" type="string">The error that occurred.</arg>
<arg name="ply" type="Player">The player whose client caused the error.</arg>
<arg name="stack" type="table">The Lua error stack trace</arg>
<arg name="name" type="string">Title of the addon that is creating the Lua errors, or "ERROR" if addon is not found.</arg>
</args>
<rets />⤶
</function>