ScarDoc

Start typing to search the SCAR reference.

Function
Player

Player_GetPopulationPercentage

Gets the current personnel or vehicle population as a percetange of the current max-cap. The captype is either CT_Personnel or CT_Vehicle.

On this page
Player_GetPopulationPercentage(playerid, captype)

Description

If MaxPopulation is 0, returns 1.0 captype is CT_Personnel by default.

Parameters

  • playeridPlayerIDrequired
  • captypeIntegeroptional

Returns

Real

Source

Declared in the game's script sources at:

scar/player.scar