OnScriptError

From Onset Developer Wiki
Revision as of 11:33, 23 March 2019 by BlueMountains (talk | contribs) (Created page with "{{Info|Event|Client|1.0}} {{FuncDescription|Called when a script error occurs. This is only called when the game was started with the '''-dev''' switch.}} {{FuncSyntax|OnScr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

Game

Vehicle

Player

Weapon

Parachuting

Key

NPC

Object

Package

Pickup

Text

Vehicle

Web UI

Sound

Door

Network