ScarDoc

Start typing to search the SCAR reference.

Function
Player

Player_SetMaxPopulation

Sets the current personnel or vehicle 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_SetMaxPopulation(playerid, captype, newcap)

Description

Note that any modifiers that adjust the current cap will be applied on top of this. Also note, the current cap cannot go higher than the max cap.

Parameters

  • playeridPlayerIDrequired
  • captypeIntegerrequired
  • newcapIntegerrequired

Returns

Void

Source

Declared in the game's script sources at:

scar/player.scar