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

SFEX.hook.PlayerDisconnect

S๐Ÿท๏ธ Hooks

Part of StarfallEx namespace

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

Description

Called when a player disconnects from 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.
playerPlayerPlayer entity the player had.
reasonstringReason for disconnecting.
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.