Personal tools

Lua/Events/Shared/ModuleError

From JC2-MP Documentation

< Lua
Jump to: navigation, search
Name    ModuleError
Arguments (in table)    string module, string error, table args
Return option    None


Description

Fired upon a Lua script error in any of the loaded modules.

Example

function Foo(e)
	print("Error occurred in the module " .. e.module)
	print(e.error)
	for k, v in pairs(e.args)
		print(k, v)
	end
end
 
Events:Subscribe("ModuleError", Foo)