Garry's Mod Wiki

Revision Difference

Global.error(lowercase)#519453

<function name="error" parent="Global" type="libraryfunc">⤶ <description>⤶ Throws a Lua error and breaks out of the current call stack.⤶ ⤶ </description>⤶ <realm>Shared and Menu</realm>⤶ <args>⤶ <arg name="message" type="string">The error message to throw</arg>⤶ <arg name="errorLevel" type="number" default="1">The level to throw the error at.</arg>⤶ </args>⤶ </function>⤶