Customization
There's some functions and events that you might need to customize the script and adapt it to your own server: dispatch, key system, notifications style, etc.
Dispatch Event
This event is triggered when the job vehicle enters a mission zone, the event receives the vehicle entity so you can use it with your own dispatch system:
Hacking Minigame
This minigame is activated when the driver uses the hacking device while inside the job vehicle. Ensure that it returns true or false, and most importantly, make sure your minigame export is async (otherwise, implement your own await mechanism)
Vehicle Keys
Once the vehicle is hacked and the driver has full control of it, this function is triggered so you can add your own vehicle keys export/event and give the vehicle keys to the player:
Set Fuel
The job vehicle is spawned with some random fuel set by the server, use your own export to add more:
Notifications
The script uses the ox_lib notifications:
Last updated