Player:SquadChange

Player:SquadChange(player: Player, squad: SquadId, oldSquad: SquadId)

Parameters

Name Type Description
player Player
squad SquadId
oldSquad SquadId

Example

Events:Subscribe('Player:SquadChange', function(player, squad, oldSquad)
    -- Do stuff here.
end)
Last modified September 11, 2022: Add oldSquad to Player:SquadChange events (2d18bef3)