Integration

States:

Entity(vehicle).state.doorslocked --is vehicle locked or unlocked
Entity(vehicle).state.hotwired    --is vehicle hotwired or not
Entity(vehicle).state.searched    --is vehicle has been searched or not
Entity(vehicle).state.headlight   --is vehicle headlight enabled by key or not
Entity(vehicle).state.windows     --json data of window glass states

Give Key:

--plate: vehicle plate number. you can use GetVehicleNumberPlateText(vehicle)
--localvehicle: true/false. true if no one own this vehicle
exports['ak47_vehiclekeys']:GiveKey(plate, false)

Remove Key:

--plate: vehicle plate number. you can use GetVehicleNumberPlateText(vehicle)
--localvehicle: true/false. true if no one own this vehicle
exports['ak47_vehiclekeys']:RemoveKey(plate, false)

Give Virtual Key:

--plate: vehicle plate number. you can use GetVehicleNumberPlateText(vehicle)
exports['ak47_vehiclekeys']:GiveVirtualKey(plate)

Remove Virtual Key:

--plate: vehicle plate number. you can use GetVehicleNumberPlateText(vehicle)
exports['ak47_vehiclekeys']:RemoveVirtualKey(plate)

Has Key:

--plate: vehicle plate number. you can use GetVehicleNumberPlateText(vehicle)
exports['ak47_vehiclekeys']:HasKey(plate)

Last updated