Gang Garages
Instructions on using the built-in gang garages
The resource offers built-in garage system for gang-members to use or you can use your own garage system.
Configuration
Navigate to
t1ger_gangsystem/config.lua
.Find the table/option called
GangMarkers
.Go through and set the config options to your preferences (read the end-line text comments).
Set
useBuiltInGarage = true
if you want to use the built in system or set tofalse
and use your own garage system.
Built In Garage
If you do not have any experience with FiveM/LUA coding, please do not engage in this. Seek help from experienced developers.
The built-in-garage is a very basic garage system that allows:
Getting all player owned vehicles and spawn the selected one.
Store the current vehicle player is using.
Get Player Vehicles
You may find it necessary to customize the built-in garage to fetch vehicles based on a few criteria such as stored/parked state and so on.
Navigate to
t1ger_gangsystem/client/main.lua
.Find the event named:
Now inside the code for the event you can add checks. The checks have to be added as an if statement before the
table.insert()
function is called.See my commented-out example inside the event (
data.marker.id
is a unique name created for each gang garage and you can use this for garage-specific systems).
Update Owned Vehicle
You may find it necessary to customize the event for updating a specific owned vehicle when the respective vehicle is either spawned from a garage or stored in a garage.
There are two entries of those in this resource. Navigate to: t1ger_gangsystem/client/main.lua
.
The first looks like this:
The second entry looks like this:
You can change the nil
value to data.marker.id
if you want to keep the garage of the vehicle when spawning it but logically it makes no sense. When vehicle is spawned the attached garage should be set to nil
.
If your garage system / table column for stored/state/parked uses other value than a boolean, let's say an INT. Then update the true/false parameter in the TriggerServerEvent to an INT or whatever value it may be.
Last updated