Functions

State Bags

  • lightAnim: true - Light animation is in progress

  • suspensionAnim: true - Suspension animation is in progress

  • leavedKeys: true - The NPC left the keys in the vehicle

  • cantFindKeys: true - Keys cannot be found in the vehicle

  • wasHotwired: true - The wires have been connected in the vehicle

  • alreadyJacked: true - The vehicle has been stolen

  • engineEnabled: true - The engine was started by the remote ignition system

Animations

lightAnim(vehicle, newLightsMultiplier, interiorLight, data)
  • vehicle: number

  • newLightsMultiplier: float

  • interiorLight: boolean

  • data: array of objects

    • duration: number

    • gap: number

    • fadeIn: boolean

    • fadeOut: boolean

Give Key

exports["is_vehiclekeys"]:GiveKey(plate)
  • plate: string

Remove Key

exports["is_vehiclekeys"]:RemoveKey(plate)
  • plate: string

Has Keys

exports["is_vehiclekeys"]:HasKeys(plate)
  • plate: string

return: boolean

Getting Script Type Key

exports["is_vehiclekeys"]:getKeyForVehicle(vehicle)
  • vehicle: number

return: string("new_car", "old_car", "universal", "bike")

Setting Lock State

TriggerServerEvent("is_vehiclekeys:setLockState", netId, state)
  • netId: number

  • state: number(1 = unlocked, 2 = locked)

Toggle Lock In Nearest Vehicle

exports["is_vehiclekeys"]:toggleLockNearestVehicle()

Last updated