GetVehiclePoolSize

GetVehiclePoolSize

Description:
Function GetVehiclePoolSize gets the highest vehicleid currently in use on the server.
Function GetVehiclePoolSize was added in 0.3.7 and will not work in earlier versions!


Parameters:
(This function has no parameters.)


Return Values:
The highest vehicleid currently in use on the server or 0 if there are no created vehicles.


Examples:
RepairAllVehicles()
{
    for(new i = 1, j = GetVehiclePoolSize(); i <= j; i++) // vehicleids start at 1
    {
        RepairVehicle(i);
    }
}


Related Functions
The following functions may be useful, as they are related to this function in one way or another.