---
name: "isVehicleSensorEnabled"
type: command
status: ok
groups: ["Sensors"]
arma3_since: "1.72"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/isVehicleSensorEnabled
revid: 363162
updated: 2024-03-24T17:32:35Z
---

# isVehicleSensorEnabled

*Command · Sensors · Arma 3 v1.72*

## Description

Returns class name (to identify list based on component name) and info if given sensor is enabled.

## Syntax

```sqf
vehicle isVehicleSensorEnabled componentName
```

**Parameters:**

- `vehicle`: [Object](../topics/Object.md)
- `componentName` : [String](../topics/String.md) - the component's name (can either be it is "real name" or it is className)

**Returns:** [Array](../topics/Array.md)

## Examples

### Example 1

```sqf
vehicle player isVehicleSensorEnabled "PassiveRadarSensorComponent"; // [["PassiveRadarSensorComponent", true]]
```

## See also

[listVehicleSensors](../commands/listVehicleSensors.md) · [enableVehicleSensor](../commands/enableVehicleSensor.md)

<sub>Source: [BI Community Wiki — isVehicleSensorEnabled](https://community.bistudio.com/wiki/isVehicleSensorEnabled) (revision 363162).</sub>
