OTHERPLANET DOCS
  • 🪐About US
  • 💻Scripts
    • 🔫OP Crime Organisations
      • Installation
      • Config Files
      • Customization
      • Tablet as Item
      • Global States
      • Exports
        • Server Side
    • 🚘OP Mechanic Job
      • Installation
      • Config File
      • Setup Jobs
      • Setup Dispatch
      • Get Duty
      • Update Tablet Stats
      • Notifications/Progressbar
      • Discord Logs
    • 🗒️OP Requests
      • Installation
      • Config
      • Usage
    • 🌇OP HUD
      • Config File
      • Instalation
      • Progress Bar Usage
      • Notify Usage
      • Alcohol Status & Stamina
    • 🏎️OP Vehicle Theft
      • Installation
      • OX Inventory
      • Translate Sounds
      • Config
      • Customization
    • 🅿️OP Garages V1 (OLD)
      • Installation
      • Config
        • Main
        • Garages Locations
        • Vehicles and Brands
      • Customization
      • Vehicle Types
      • Jobs
      • Exports
      • Other
Powered by GitBook
On this page
  • onHackStart(vehicle, heist)
  • onHackFail(vehicle, heist)
  • onHackSuccess(vehicle, heist)
  • Data In Functions
  1. Scripts
  2. OP Vehicle Theft

Customization

Want to add triggers or exports on selected actions? Here you will read about it! Functions can be found in client/utils.lua

onHackStart(vehicle, heist)

Function which is executed when player start hacking.

onHackFail(vehicle, heist)

Function which is executed when player fail hacking.

onHackSuccess(vehicle, heist)

Funciton which is executed when palyer success hack device.

Data In Functions

Data stored in functions variables.

  • vehicle: vehicle

  • heist:

    • KeysSignal: vec3 - Return vehicle keys signal coords

    • DestinationSpawned: boolean - Return status of destination ped

    • DestinationPed: ped - Return spawned ped id

    • DestinationPedCoords: vec3 - Return destination ped coords

    • DestinationForward: vec3 - Return destination ped forward vector

    • DestinationIsDriving: boolean - Return status of destination ped driving

    • hackSuccess: boolean - Return status of hack

    • spawnedvehicle: vehicle - Return spawned vehicle object

    • Vehicle: table - Return current heist vehicle table from config.

    • blip, blip2, blip3: blip - Return created blips (blip: vehicleblip, blip2: radius blip, blip3: destination blip)

PreviousConfigNextOP Garages V1 (OLD)

Last updated 1 year ago

💻
🏎️