<aside> ⚡
script "core_getplayerteam" (int player)
</aside>
Returns the current team of a selected player, chosen by providing their player number.
player
: int - The player number of the player to get a team for. Use a value of -1 to specify the calling player.Returns the selected player’s team.
<aside> 🚨 This script can have some unintuitive behavior in modes without teams! Be wary of using this script in those situations!
</aside>