MenanAk47
  • Welcome
  • FAQ
  • ESX
    • ak47_whitewidowv2
      • Installation
      • Configuration
    • ak47_cannabiscafev2
      • Installation
      • Configuration
    • ak47_clothing
      • Installation
      • Configuration
      • Integration
      • Exports
      • Triggers
      • Commands
      • Common Issues
    • ak47_iclothingv3
      • Installation
    • ak47_switch
      • Installation
      • Commands
    • ak47_crutch
      • Installation
      • Triggers
      • Commands
    • ak47_housing
      • Installation
      • Configuration
      • Integration
      • Commands
      • Common Issues
    • ak47_cardealer
      • Installation
      • Configuration
      • Integration
      • Commands
      • Common Issues
    • ak47_ambulancejob
      • Installation
      • Guideline
      • Items
      • Integration
      • Commands
      • Triggers
      • Exports
    • ak47_gangs
      • Installation
      • Integration
      • Commands
      • Exports
    • ak47_garage
      • Installation
      • Integration
      • Commands
    • ak47_jobgarage
      • Installation
      • Integration
      • Commands
    • ak47_vehiclekeys
      • Installation
      • Integration
      • Commands
    • ak47_carboosting
      • Installation
      • Integration
      • Commands
    • ak47_safezone
      • Installation
      • Integration
      • Commands
    • ak47_inventory
      • Installation
      • Exports
        • Client
        • Server
      • Event Handlers
        • Client
        • Server
      • Commands
      • Guides
        • Custom Stash
        • External Shop
        • Protected Item
        • Convert Items
        • Show Info Value
      • Templates
        • Item
        • Weapon
        • Crafting
        • Stash
        • Shop
        • Vending
        • Dumpster
        • Tooltip
      • Modified Scripts
        • LegacyFuel
    • ak47_idcardv2
      • Installation
      • Integration
      • Commands
    • ak47_territories
      • Installation
      • Integration
      • Commands
      • Exports
  • QBCore
    • ak47_qb_whitewidowv2
      • Installation
      • Configuration
    • ak47_qb_cannabiscafev2
      • Installation
      • Configuration
    • ak47_qb_clothing
      • Installation
      • Configuration
      • Integration
      • Exports
      • Triggers
      • Commands
      • Common Issues
    • ak47_qb_iclothingv3
      • Installation
    • ak47_qb_switch
      • Installation
      • Commands
    • ak47_qb_crutch
      • Installation
      • Triggers
      • Commands
    • ak47_qb_wanted
      • Installation
      • Triggers
    • ak47_qb_housing
      • Installation
      • Configuration
      • Integration
      • Commands
      • Common Issues
    • ak47_qb_cardealer
      • Installation
      • Configuration
      • Integration
      • Commands
      • Common Issues
    • ak47_qb_ambulancejob
      • Installation
      • Guideline
      • Items
      • Integration
      • Commands
      • Triggers
      • Exports
    • ak47_qb_gangs
      • Installation
      • Integration
      • Commands
      • Exports
    • ak47_qb_garage
      • Installation
      • Integration
      • Commands
    • ak47_qb_jobgarage
      • Installation
      • Integration
      • Commands
    • ak47_qb_vehiclekeys
      • Installation
      • Integration
      • Commands
    • ak47_qb_carboosting
      • Installation
      • Integration
      • Commands
    • ak47_qb_safezone
      • Installation
      • Integration
      • Commands
    • ak47_qb_inventory
      • Installation
      • Exports
        • Client
        • Server
      • Event Handlers
        • Client
        • Server
      • Commands
      • Guides
        • Custom Stash
        • External Shop
        • Protected Item
        • Convert Items
        • Enable Weapon Wheel
        • Show Info Value
      • Templates
        • Item
        • Weapon
        • Crafting
        • Stash
        • Shop
        • Vending
        • Dumpster
        • Tooltip
      • Modified Scripts
        • LegacyFuel
    • ak47_qb_idcardv2
      • Installation
      • Integration
      • Commands
    • ak47_qb_territories
      • Installation
      • Integration
      • Commands
      • Exports
Powered by GitBook
On this page
  • States:
  • Give Key:
  • Remove Key:
  • Give Virtual Key:
  • Remove Virtual Key:
  • Has Key:
  1. ESX
  2. ak47_vehiclekeys

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)
--source: player id
--plate: vehicle plate number. you can use GetVehicleNumberPlateText(vehicle)
--localvehicle: true/false. true if no one own this vehicle
exports['ak47_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_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_vehiclekeys']:RemoveKey(source, 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)
--source: player id
--plate: vehicle plate number. you can use GetVehicleNumberPlateText(vehicle)
exports['ak47_vehiclekeys']:HasKey(source, plate)
PreviousInstallationNextCommands

Last updated 6 months ago