Player:TeamChange

Player:TeamChange(player: Player, team: TeamId, squad: SquadId, oldTeam: TeamId)

Parameters

Name Type Description
player Player
team TeamId
squad SquadId
oldTeam TeamId

Example

Events:Subscribe('Player:TeamChange', function(player, team, squad, oldTeam)
    -- Do stuff here.
end)
Last modified November 2, 2022: Update changelog for 19963 (9f161b98)