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

SFEX.hook.PlayerChangedTeam

S๐Ÿท๏ธ Hooks

Part of StarfallEx namespace

๐Ÿ”— External
hook.add("PlayerChangedTeam", "name", function(ply, oldTeam, newTeam) end)
View on GitHub|lua/starfall/libs_sh/hook.lua:135
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Called when a player has changed team using Player:SetTeam

Parameters

NameTypeDescription
plyPlayerPlayer whose team has changed
oldTeamnumberIndex of the team the player was originally in. See team.getName and the team library
newTeamnumberIndex of the team the player has changed to.

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.