Anonymous

Not logged in

  • Log in
Onset Developer Wiki

GetVehicleCount

From Onset Developer Wiki

Namespaces

  • Page
  • Discussion

More

  • More

Page actions

  • Read
  • View source
  • History
GetVehicleCount

Type: Function
Context: Server & Client
Introduced: v1.0

Contents

  • 1 Description
  • 2 Syntax
    • 2.1 Parameters
    • 2.2 Return Value
  • 3 Example
  • 4 See also

Description

Returns the number of vehicles.

Syntax

GetVehicleCount()

Parameters

  • This function has no parameters.

Return Value

  • Returns the number of vehicles.

Example

print("Vehicles: " .. GetVehicleCount())

See also

  • CreateVehicle
  • DestroyVehicle
  • IsValidVehicle
  • GetVehicleCount
  • GetAllVehicles
  • GetVehicleModel
  • GetVehicleModelName
  • SetVehicleRespawnParams
  • IsVehicleStreamedIn
  • GetStreamedVehiclesForPlayer
  • GetStreamedVehicles
  • SetVehicleLocation
  • GetVehicleLocation
  • SetVehicleRotation
  • GetVehicleRotation
  • SetVehicleHeading
  • GetVehicleHeading
  • SetVehicleHealth
  • GetVehicleHealth
  • SetVehicleLicensePlate
  • GetVehicleVelocity
  • GetVehicleDriver
  • GetVehiclePassenger
  • GetVehicleNumberOfSeats
  • SetVehicleColor
  • GetVehicleColor
  • SetVehicleLinearVelocity
  • SetVehicleAngularVelocity
  • GetVehicleGear
  • SetVehicleHoodRatio
  • GetVehicleHoodRatio
  • SetVehicleTrunkRatio
  • GetVehicleTrunkRatio
  • StartVehicleEngine
  • StopVehicleEngine
  • GetVehicleEngineState
  • SetVehicleLightEnabled
  • GetVehicleLightState
  • SetVehicleDamage
  • GetVehicleDamage
  • AttachVehicleNitro
Retrieved from "https://dev.playonset.com/index.php?title=GetVehicleCount&oldid=4861"

Navigation

Navigation

  • Main page
  • Recent changes
  • Random page
  • Help about MediaWiki
  • Steam Forums
  • Discord
  • Special pages

Wiki tools

Wiki tools

    Page tools

    Page tools

      User page tools

        More

        • What links here
        • Related changes
        • Printable version
        • Permanent link
        • Page information
        • Page logs
        • (c) 2025 Blue Mountains GmbH
        • Powered by MediaWiki
        • This page was last edited on 26 June 2021, at 14:51.
        • Content is available under (c) 2025 Blue Mountains GmbH unless otherwise noted.
        • Privacy policy
        • About Onset Developer Wiki
        • Disclaimers