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)

Last updated