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

  • plate: string

Remove Key

  • plate: string

Has Keys

  • plate: string

return: boolean

Getting Script Type Key

  • vehicle: number

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

Setting Lock State

  • netId: number

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

Toggle Lock In Nearest Vehicle

Last updated