OnScriptError: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
No edit summary
Chloe (talk | contribs)
mNo edit summary
Line 17: Line 17:


{{RelatedFunctions}}
{{RelatedFunctions}}
*[[Template:ClientEvents|Client Events]]
{{PackageClientEvents}}

Revision as of 09:22, 16 January 2020

OnScriptError

Type: Event
Context: Client
Introduced: v1.0

Description

Called when a script error occurs. This is only called when the game was started with the -dev switch.

Syntax

OnScriptError(message)

Parameters

  • message
    The script error message.

Example

function OnScriptError(message)
	AddPlayerChat('<span color="#ff0000bb" style="bold" size="10">'..message..'</>')
end
AddEvent("OnScriptError", OnScriptError)

See also