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_qb_vehiclekeys']:GiveKey(plate, false)
--source: player id
--plate: vehicle plate number. you can use GetVehicleNumberPlateText(vehicle)
--localvehicle: true/false. true if no one own this vehicle
exports['ak47_qb_vehiclekeys']:GiveKey(source, 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_qb_vehiclekeys']:RemoveKey(plate, false)
--source: player id
--plate: vehicle plate number. you can use GetVehicleNumberPlateText(vehicle)
--localvehicle: true/false. true if no one own this vehicle
exports['ak47_qb_vehiclekeys']:RemoveKey(source, plate, false)
Give Virtual Key:
--plate: vehicle plate number. you can use GetVehicleNumberPlateText(vehicle)
exports['ak47_qb_vehiclekeys']:GiveVirtualKey(plate)
Remove Virtual Key:
--plate: vehicle plate number. you can use GetVehicleNumberPlateText(vehicle)
exports['ak47_qb_vehiclekeys']:RemoveVirtualKey(plate)
Has Key:
--plate: vehicle plate number. you can use GetVehicleNumberPlateText(vehicle)
exports['ak47_qb_vehiclekeys']:HasKey(plate)
--source: player id
--plate: vehicle plate number. you can use GetVehicleNumberPlateText(vehicle)
exports['ak47_qb_vehiclekeys']:HasKey(source, plate)
Last updated