Gang Garages
Instructions on using the built-in gang garages
Last updated
Instructions on using the built-in gang garages
Last updated
The resource offers built-in garage system for gang-members to use or you can use your own garage system.
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 to false
and use your own garage system.
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.
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:
These are the keys you can use (make sure you have updated t1ger-lib with correct values for those keys. See for instructions):
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).
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.
By default the resource uses a TriggerServerEvent
to T1GER Library to update stored, garage and props when a vehicle is spawned/stored. If you havent updated the function to your server settings, please refer to: .
Make sure to update the Lib.UpdateOwnedVehicle() function from T1GER Library accordingly, so it uses the parsed values instead of boolean. See to find the function in T1GER Library.