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_cluckinbellSo 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.
cookingfor a cookingplate or grill for examplepreparefor a cuttingboard or somethingdrinkis for a sodamachine or fridge or somethingcashregisteris to open the cashregister which you have to make work yourself or copy from the qb lua filestorageis to have a small storage which you can define the values of in each vehicle filefridgeis to have a shop in the vehicle (for example qb-shops)fryingis for like a frying pan positioncounteryou will have to make it synced so anyone can access it
syncedZoneif true will make the zone so anyone can interact with ittargeticonis the icon to show on the ox targetlabelis the text shown for the targetOffset and BoxSizeare the values you will get after creating a zone with the editormodelwill place a prop if not nil on the position of the zoneeventcan 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:
func = function() -- nil to disable function event
end,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