> ## Documentation Index
> Fetch the complete documentation index at: https://docs.roadshop.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Client API

> Client-side exports for RoadCarplay integration

## Access Control Functions

### isBlocked

Check if CarPlay is currently blocked.

<ResponseField name="return" type="boolean">
  Returns `true` if CarPlay is blocked, `false` otherwise
</ResponseField>

```lua theme={null}
local blocked = exports['roadcarplay']:isBlocked() -- returns true / false
```

### blockCarPlay

Prevent CarPlay from turning on.

```lua theme={null}
exports['roadcarplay']:blockCarPlay()
```

### unblockCarPlay

Remove blocked status from CarPlay, allowing users to turn it on again.

```lua theme={null}
exports['roadcarplay']:unblockCarPlay()
```
