road-barrierSetup

Various steps to ensure our script works on your server.

In-depth Guide

You just downloaded our resources and wondering where to get started? This is for you. We will instruct you on how to get it set up for all different types of servers.

Basic Setup

To get started, you will need to have completed at least these listed steps. It is very much recommended to read the rest of the page to ensure the resource runs smooth on your server.

All of our databases queries are automatically executed the first time you run the script, along with repairs if needed when you start it in the future.

1

Dependencies

First, make sure to download all dependencies. It is also important that you follow a proper starting sequence, you can use our guide (Resource Starting Sequence) if you are uncertain.

2

Sounds

Note that if you are on the latest update of zyke_sounds, these sounds are already added.

Optionally, if you don't disable the sounds from being played in the config of the script, you have to extract the sounds from zyke_garages/extras/sounds into zyke_sounds/nui/sounds.

3

Items

Go into zyke_garages/extras/items and add the items for your inventory. You can find images in zyke_garages/extras/items/images.

4

Vehicle Migration

Initialization Showcase (500 Random Vehicles, 18.2s)arrow-up-right - Slightly outdated, now even faster!

Our garage contains a lot of functionality, and because of this, there has to be a vehicle migration performed. Don't worry, it's easy!

All you have to do is run the command found herearrow-up-right. However, we very much recommend you read the information below and watch the showcase to be prepared as to what will happen.

All previous vehicle details will stay exactly as before. This step is required since some values we use are impossible to fetch without having the entity be spawned.

For those that are technical, we fetch & store certain values that are not available on the server-side instead of having to fetch them in real time or every time the server starts. This is a one time thing for migrations if you previously had vehicles.

5

Good To Know

We strongly recommend you read the rest of this page to avoid any issues.

Good To Know

Keys

Our resource boasts a built-in premium keysystem with backwards compatibility for the most popular alternatives on the market (qs, wasabi, qb). In order for our system to work properly, you are required to disable any other keysystem on your server.

If you keep our keysystems on your server, including the ones we have listed as backwards compatible, you WILL face synchronization issues.

Clear Old Appended Columns

To ensure that the command completely works, we recommend you deleting any columns that was created by a previous script, that is not native to your cardealer for your framework. This is not always required, but can cause issues if a previous garage system has had similar column names and set value types not corresponding to what we require. If you want help, we offer free support for this through our Discordarrow-up-right.

Specifically, some servers may already contain a vin column, which will incorrectly flag the vehicle as already initialized.

Default Garage

If you are initializing vehicles without any garages set up, the default garage will become a random one, or none at all since one could not be found. Make sure to set up your garages and your default garage to avoid having to transfer your vehicles later down the line.

Perform Database Backup

We recommend performing a database backup. The resource has been tested numerous times and works, but you should always create a backup just in case.

Last updated