Setting up a vehicle
Here you can find how to setup a vehicle!
Basic quick setup
Enable debug in config.lua
Go to the vehicles folder and create a new .lua file (You can name it whatever you want)
Copy all the text from another vehicle that I already have made
Change or add all things you will need
You can use /vehoffset when inside a car to start creating a boxzone / offset
Vehicle setup breakdown
For example
Config.offset['voodoofoodt']
where voodoofoodt the displayname is for the vehicle. This is given after you create a boxzone / offset. The job vehicle is defined with and underscore for examplevoodoofoodt_cluckinbell
So Displayname _ Jobnamecarspawnname is the spawnname of the vehicle.
targets is where you will setup the target zones / offset.
Target breakdown
Zonetype is the type of the zone. This can be whatever you want or one of these below.
cooking
for a cookingplate or grill for exampleprepare
for a cuttingboard or somethingdrink
is for a sodamachine or fridge or somethingcashregister
is to open the cashregister which you have to make work yourself or copy from the qb lua filestorage
is to have a small storage which you can define the values of in each vehicle filefridge
is to have a shop in the vehicle (for example qb-shops)frying
is for like a frying pan positioncounter
you will have to make it synced so anyone can access it
syncedZone
if true will make the zone so anyone can interact with ittargeticon
is the icon to show on the ox targetlabel
is the text shown for the targetOffset and BoxSize
are the values you will get after creating a zone with the editormodel
will place a prop if not nil on the position of the zoneevent
can be server , client or function but you will have to define the event yourself so you can basicaly trigger anything
Event
You have 3 types of event / func you could use
Server
Client
Function
A function will be default nil to disable it.
To use a function edit it like below:
The order it will check which to use is Server event -> Function -> Client event -> default events
Animation
You can edit the animation and the prop for the default zonetypes
CreateStages
This is to add a prop to the center of the zone when for example cooking
For examplke:
['bacon']
Is the item spawn name[1] = 'raw_bacon'
is the prop name
Stash
Define the stash size and slots
Register
Header url for the jim payment cash register
Fridge
Create / Define a shop for example for qb-shop
Recepies
Here you will find all predefined zones
Each zone can have its own recepy attached to it
[itemname] = amount you make + a table of all items needed to make it
Last updated