flex-truck | Make any vehicle have targets

Ever wanted to make a food truck work? Have a drugs van that needs to work?
Than this resource will help you for sure!

What is this script?

With this script you can position targetboxes on any vehicle and have it move with the vehicle.
Comes predefined with some voodoo foodtrucks as an example.

Default framework that works is QB-Core but you can edit / make it work for any other framework (Code to make it work is open)!

Uses OX-Target for the targetzones and Ox-Lib for the menu (Crafting menu,…)

Example

For example if you have a foodtruck, you can make the foodtruck work (Like the cooking plate,…)

The script comes included with a crafting system for foodtrucks or any other thing you want to craft.
Each default craft event has its own animation you can edit for each foodtruck.

Other default zone features

  • cooking for a cookingplate or grill for example

  • prepare for a cuttingboard or something

  • drink is for a sodamachine or fridge or something

  • cashregister is to open the cashregister which you have to make work yourself or copy from the qb lua file

  • storage is to have a small storage which you can define the values of in each vehicle file

  • fridge is to have a shop in the vehicle (for example qb-shops)

  • frying is for like a frying pan position

  • counter you will have to make it synced so anyone can access it

Each zone can also be linked to any event of your liking (Server or Client).
Each zone can be client sided or synced across all players so anyone can access it!

How to setup a vehicle

With the included zone editor, it is easy to position a zone inside or on the vehicle!

More details can be found here
Setup a vehicle

Where to get it?

HERE → 18$ + TAX
|-------------------------------------|----------------------------|
| Code is accessible | Yes Some parts |
| Subscription-based | No |
| Lines (approximately) | Around 800 + included vehicles that are already setup |
| Requirements | ox_lib, ox_target, and any framework (qb-core works default)|
| Support | Yes |

|-------------------------------------|----------------------------|

25 is crazy hahah

2 Likes

I will lower it!

NEW ‘SMALL’ UPDATE

  • Added experimental Sleepless Interact support. You best trigger it with the command to start the interactions.
  • Added function support

How to enable function support

In the event section for each target underneath trigger, you will find **func = nil
You can replace it with code below to enable the function event

 func = function() -- nil to disable function event
 end,

Als updated it on my GITBOOK