vehicle.alarm: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
m (Mex moved page Vehicle.alarm to vehicle.alarm)
 
(No difference)

Latest revision as of 15:58, 24 August 2019

Property Client Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline Read and Set

Available since Client 1.0.72

bool vehicle.alarm

The vehicle.alarm property is used to fetch or set the alarm status for the vehicle.

Value

bool A bool representing the alarm status of the vehicle.
read/set This property can be changed, as well as read.

Types

Shared Train
Shared Vehicle

Notes

  • This property must be re-applied with a timer for a full alarm effect. If set once without a timer, the vehicle will play the alarm sound for partial second then stop. (Only works on process).

Examples

Example 1 - JavaScript:

function vehicleAlarm(vehicle) { vehicle.alarm = true; }

setTimeout(vehicleAlarm(vehicle), 250);


Example 2 - Lua:

function vehicleAlarm(vehicle) vehicle.alarm = true end

setTimeout(vehicleAlarm(vehicle), 250)


Example 3 - Squirrel:

function vehicleAlarm(vehicle) { vehicle.alarm = true; }

setTimeout(vehicleAlarm(vehicle), 250);

Compatibility

There isn't any compatibility information for this property.

Related

Client Related

icon-iv.png createVehicle
icon-iii.png icon-vc.png icon-sa.png getVehicleCount
icon-iii.png icon-vc.png icon-sa.png icon-iv.png getVehicles
icon-iii.png icon-vc.png icon-sa.png icon-iv.png gta.createVehicle

icon-iii.png icon-vc.png icon-sa.png vehicle.addOnXRotation
icon-iii.png icon-vc.png icon-sa.png vehicle.addOnZRotation
icon-sa.png vehicle.addUpgrade
icon-iii.png icon-vc.png icon-sa.png vehicle.affectedByGravity
icon-iii.png icon-vc.png icon-sa.png vehicle.alarm
icon-iii.png vehicle.alpha
icon-vc.png vehicle.appearance
icon-iii.png vehicle.beingCarriedByCrane
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.blow
icon-iii.png icon-vc.png icon-sa.png vehicle.boundingCentre
icon-iii.png icon-vc.png icon-sa.png vehicle.boundingMax
icon-iii.png icon-vc.png icon-sa.png vehicle.boundingMin
icon-iii.png icon-vc.png icon-sa.png vehicle.boundingRadius
icon-iii.png icon-vc.png icon-sa.png vehicle.centerOfMass
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.children
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.clearExistsFor
icon-iii.png icon-vc.png icon-sa.png vehicle.collisionBoxCount
icon-iii.png icon-vc.png icon-sa.png vehicle.collisionBoxes
icon-iii.png icon-vc.png icon-sa.png vehicle.collisionLineCount
icon-iii.png icon-vc.png icon-sa.png vehicle.collisionLines
icon-iii.png icon-vc.png icon-sa.png vehicle.collisionPower
icon-iii.png icon-vc.png icon-sa.png vehicle.collisionsEnabled
icon-iii.png icon-vc.png icon-sa.png vehicle.collisionSphereCount
icon-iii.png icon-vc.png icon-sa.png vehicle.collisionSpheres
icon-iii.png icon-vc.png icon-sa.png vehicle.collisionVertexCount
icon-iii.png icon-vc.png icon-sa.png vehicle.collisionVertices
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.colour1
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.colour2
icon-sa.png icon-iv.png vehicle.colour3
icon-sa.png icon-iv.png vehicle.colour4
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.dimension
icon-iv.png vehicle.dirtLevel
icon-iii.png icon-vc.png icon-sa.png vehicle.distanceFromCentreOfMassToBaseOfModel
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.driveTo
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.drowned
icon-iv.png vehicle.enableGPS
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.engine
icon-iv.png vehicle.engineHealth
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.existsFor
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.fix
icon-iii.png icon-vc.png icon-sa.png vehicle.flipped
icon-vc.png icon-sa.png vehicle.flyTo
icon-iii.png icon-vc.png icon-sa.png vehicle.gear
icon-iii.png icon-vc.png vehicle.getComponentWorldPosition
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.getData
icon-iii.png icon-vc.png icon-sa.png vehicle.getDoorStatus
icon-iii.png icon-vc.png icon-sa.png vehicle.getLightStatus
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.getOccupant
icon-iii.png icon-vc.png icon-sa.png vehicle.getOccupants
icon-iii.png icon-vc.png icon-sa.png vehicle.getPanelStatus
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.getRotation
icon-iii.png icon-vc.png icon-sa.png vehicle.getSuspensionHeight
icon-iii.png icon-vc.png icon-sa.png vehicle.getWheelStatus
icon-iii.png icon-vc.png icon-sa.png vehicle.handlingIndex
icon-iii.png icon-vc.png vehicle.hasRoof
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.heading
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.health
icon-iv.png vehicle.health
icon-iii.png icon-vc.png icon-sa.png vehicle.heightAboveRoad
icon-iii.png icon-vc.png icon-sa.png vehicle.horn
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.id
icon-iii.png icon-vc.png icon-sa.png vehicle.interior
icon-iii.png icon-vc.png icon-sa.png vehicle.inWater
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.isCreatedFor
icon-iii.png vehicle.island
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.isLocal
icon-iii.png icon-vc.png icon-sa.png vehicle.isOnScreen
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.isOwner
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.isSyncer
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.isType
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.lights
icon-iii.png icon-vc.png icon-sa.png vehicle.lightsStatus
icon-iv.png vehicle.livery
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.locked
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.lockedStatus
icon-iii.png icon-vc.png icon-sa.png vehicle.markAsNoLongerNeeded
icon-iii.png icon-vc.png icon-sa.png vehicle.mass
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.matrix
icon-iii.png icon-vc.png icon-sa.png vehicle.model
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.modelIndex
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.name
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.netFlags
icon-iii.png icon-vc.png icon-sa.png vehicle.onScreen
icon-iii.png icon-vc.png vehicle.onSide
icon-vc.png icon-sa.png vehicle.openTop
icon-iv.png vehicle.openTrunk
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.parent
icon-iv.png vehicle.petrolTankHealth
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.position
icon-iii.png icon-vc.png icon-sa.png vehicle.radioStation
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.removeAllData
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.removeData
icon-sa.png vehicle.removeUpgrade
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.resource
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.rotation
icon-iii.png icon-vc.png icon-sa.png vehicle.setCarCruiseSpeed
icon-iii.png icon-vc.png icon-sa.png vehicle.setCarMission
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.setColours
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.setData
icon-iii.png icon-vc.png icon-sa.png vehicle.setDoorStatus
icon-iii.png icon-vc.png icon-sa.png vehicle.setDrivingStyle
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.setExistsFor
icon-iv.png vehicle.setHazardLights
icon-iii.png icon-vc.png icon-sa.png vehicle.setLightStatus
icon-sa.png vehicle.setPaintJob
icon-iii.png icon-vc.png icon-sa.png vehicle.setPanelStatus
icon-iv.png vehicle.setProofs
icon-iii.png icon-vc.png icon-sa.png vehicle.setProofs
icon-iii.png icon-vc.png icon-sa.png vehicle.setRGBColours
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.setRotation
icon-iii.png icon-vc.png icon-sa.png vehicle.setSuspensionHeight
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.setSyncer
icon-iii.png icon-vc.png icon-sa.png vehicle.setWheelStatus
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.siren
icon-iii.png icon-vc.png icon-sa.png vehicle.status
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.streamInDistance
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.streamOutDistance
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.subType
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.syncer
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.syncerId
icon-iv.png vehicle.taxiLight
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.turnVelocity
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.type
icon-iii.png icon-vc.png icon-sa.png vehicle.upsideDown
icon-iii.png icon-vc.png icon-sa.png icon-iv.png vehicle.velocity
icon-iii.png icon-vc.png icon-sa.png vehicle.visible
icon-iii.png icon-vc.png icon-sa.png vehicle.wanderRandomly