Personal tools


From JC2-MP Documentation

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


Fired when a player becomes fully authenticated by Steam. Until a player is authenticated, it cannot be guaranteed that their identity is genuine.

For example, if you have an admin script that uses Steam ids to give certain players admin access, you should wait until this is fired until they receive access.


function Foo(args)
	print(args.player:GetName().." has been authenticated by Steam")
Events:Subscribe("PlayerAuthenticate", Foo)