Access Control Functions

isBlocked

Check if CarPlay is currently blocked.
return
boolean
Returns true if CarPlay is blocked, false otherwise
local blocked = exports['roadcarplay']:isBlocked() -- returns true / false

blockCarPlay

Prevent CarPlay from turning on.
exports['roadcarplay']:blockCarPlay()

unblockCarPlay

Remove blocked status from CarPlay, allowing users to turn it on again.
exports['roadcarplay']:unblockCarPlay()