Personal tools


From JC2-MP Documentation

< Lua
Jump to: navigation, search
Name    ClientModuleLoad
Arguments (in table)    Player player
Return option    None


Fired when player is finished loading the client-side scripts of the module, either when they join or when the module is loaded/reloaded. Note that the module must actually have a client-side script for this event to fire at all.

You may want to wait until this is called before sending network messages to a player.


function Foo(args)
	print(args.player:GetName().."'s client-side scripts have been loaded")
Events:Subscribe("ClientModuleLoad", Foo)