Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.hook.PlayerConnect

S๐Ÿท๏ธ Hooks

Part of StarfallEx namespace

๐Ÿ”— External
hook.add("PlayerConnect", "name", function(networkid, name, userid, isbot) end)
View on GitHub|lua/starfall/libs_sh/hook.lua:668
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Called when a player connects to the server. (Game Event)

Parameters

NameTypeDescription
networkidstringThe SteamID the player had. Will be "BOT" for bots and "STEAM_0:0:0" in single-player.
namestringThe name the player had.
useridnumberThe UserID the player has.
isbotbooleanFalse if the player isn't a bot, true if they are.

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.