Scripting/Server/Functions/GetVehicleCount
Number of vehicles that exist (script-removed ones are not counted).
Contents
Syntax
GetVehicleCount()Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "getvehiclecount" )
{
GetVehicleCount();
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- FindPlayer
- FindVehicle
- FindObject
- FindPickup
- FindSphere
- FindBlip
- FindNPC
- GetPlayers
- GetMaxPlayers
- GetClosestPlayer
- GetObjectCount
- KickPlayer
Section: Finding and counting entities
Categories: Server functions | Finding and counting entities