getVehicles

From GTA Connected
Jump to navigation Jump to search

Function Client Only All Games Online and Offline

Client 1.0.0

Description

The getVehicles function is used to fetch all vehicle handles.

Parameters

Type Description
void This function doesn't take any parameters.

Returns

Success Returns

Type Description
array
An array of all vehicles with syntax array<int index, Vehicle vehicle>.

Failure Returns

Type Value
array
[]

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

  • This function was previously named game.getVehicles in client version 1.0.71.

Related

Client Related

getVehicles
gta.createVehicle

vehicle.addUpgrade
vehicle.alarm
vehicle.alpha
vehicle.blow
vehicle.boundingCentre
vehicle.boundingMax
vehicle.boundingMin
vehicle.boundingRadius
vehicle.carWanderRandomly
vehicle.centerOfMass
vehicle.children
vehicle.collisionPower
vehicle.collisionsEnabled
vehicle.colour1
vehicle.colour2
vehicle.colour3
vehicle.colour4
vehicle.dimension
vehicle.dirtLevel
vehicle.distanceFromCentreOfMassToBaseOfModel
vehicle.driveTo
vehicle.drowned
vehicle.enableGPS
vehicle.engine
vehicle.engineHealth
vehicle.fix
vehicle.flipped
vehicle.flyTo
vehicle.gear
vehicle.getData
vehicle.getDoorStatus
vehicle.getLightStatus
vehicle.getOccupant
vehicle.getPanelStatus
vehicle.getRotation
vehicle.getSuspensionHeight
vehicle.getWheelStatus
vehicle.handlingIndex
vehicle.heading
vehicle.health
vehicle.health
vehicle.horn
vehicle.id
vehicle.interior
vehicle.isLocal
vehicle.isOnScreen
vehicle.isSyncer
vehicle.isType
vehicle.lights
vehicle.livery
vehicle.locked
vehicle.markAsNoLongerNeeded
vehicle.mass
vehicle.matrix
vehicle.modelIndex
vehicle.name
vehicle.openTrunk
vehicle.parent
vehicle.petrolTankHealth
vehicle.position
vehicle.radioStation
vehicle.removeAllData
vehicle.removeData
vehicle.removeUpgrade
vehicle.setCarCruiseSpeed
vehicle.setCarMission
vehicle.setColours
vehicle.setData
vehicle.setDoorStatus
vehicle.setDrivingStyle
vehicle.setHazardLights
vehicle.setLights
vehicle.setLightStatus
vehicle.setPaintJob
vehicle.setPanelStatus
vehicle.setProofs
vehicle.setRGBColours
vehicle.setRotation
vehicle.setSuspensionHeight
vehicle.setWheelStatus
vehicle.siren
vehicle.status
vehicle.subType
vehicle.syncer
vehicle.taxiLight
vehicle.turnVelocity
vehicle.type
vehicle.velocity