Jump to navigation Jump to search
|Function name||Player:changeTeam(number team, boolean force, boolean suppressNotification)|
|Change the team of a player.|
|Part of Library:||Player|
- team (number)
- force (boolean) (optional)
- suppressNotification (boolean) (optional)
The team (job number).
Force the change (ignore restrictions that players usually have to get the job).
Suppress any notifications.
Function return values
- allowed (boolean)
Whether the player is allowed to get the job.