Function
Player
Player_SetMaxCapPopulation
Sets the current personnel or vehicle max-cap for a player. The captype is either CT_Personnel or CT_Vehicle (you can't adjust Medic caps just yet).
On this page
Player_SetMaxCapPopulation(playerid, captype, newcap)Description
Note that any modifiers that adjust the current max cap will be applied on top of this. Also note, this is only adjusting the max cap, not the current cap, you will have to call Player_SetMaxPopulation to adjust the current max population to do this.
Parameters
playeridPlayerIDrequiredcaptypeIntegerrequirednewcapIntegerrequired
Returns
VoidSource
Declared in the game's script sources at:
scar/player.scar