T1GER Dealerships

Documentation, troubleshooting and support for T1GER Dealerships resource

INSTALLATION

DEPENDENCIES

Dependency

Download

Install

Description

esx_society

Optional

Required to use boss-menu, employment, etc.

esx_addonaccounts

Optional

Required to use society accounting/money and so on.

K4MB1 PDM Dealership (FREE)

Optional

Required to use predefined config setup for 2nd dealership.

START

  1. Extractt1ger_dealerships.rar and place it into your resource folder.

  2. Install the SQL files into your database (⚠️see #SQL for instructions).

  3. Setupconfig.lua (⚠️see #CONFIGURATION for instructions).

  4. Addensure t1ger_dealershipsto your server start config (place it anywhere below the dependency & framework resources).

SQL

Please open SQL folder from the resource and follow the below steps.

Be aware: if you have a vehicles table in your database, use main1.sql otherwise you need to use main2.sql.

  1. Open either main1.sql or main2.sql and either execute the queries manually (my preferred way) or import the respective file.

  2. Then open vehicle_display.sql and ensure that the model and name of the display vehicles exists in your vehicles table. If not then please change it to vehicles that do exists.

    This is important, otherwise you may encounter errors on startup of the resource.

  3. Open jobs.sql and execute/import the file. If you change these names/values, makes sure to change/update equivalently in your config in the respective places.

  4. This step is optional, but I have a vehicles.sql with default GTA vehicles, including DLC vehicles up to & including Los Santos Tuner DLC. However, this requires that your gameBuild is set to tuner (click here for instructions).

CONFIGURATION

Please go through all configurable options & settings in config.lua and configure them to your server's preferences.

Also please read the comments at the end of each line, for a brief information on what the option does.

It is utmost important that your values for Config.Society in the resource matches your database values!

UTILITIES

In client/utils.lua there is a file where you can edit some utility functions. In here you can customize notifications, draw texts and many other functions. Please do read it through and make changes to meet your server's preferences.

MISCELLANEOUS

CHAT COMMANDS

Please note, all these command strings are configurable and can be disabled as well.

Command

Description

/finance

Command to manage financing.

/registration

Command to view, show or give registration paper.

EXPORTS

These are available exports in the resource - use them as you please and find necessary.

Export Function

Description

exports['t1ger_dealerships']:ProduceNumberPlate()

Use this export to generate a plate for a spawned vehicle. It checks against the database to make sure the plate doesn't exists. This is a replacement for exports['esx_vehicleshop']:GeneratePlate()

SCRIPT NOT WORKING / ERRORS

VEHICLE NAME NULL My vehicles show up as NULL and not by name.

✔️ Please read this post on CFX Forum on how to properly add custom vehicles to your server. If that didn't fix your issue, then find the respectivevehicles.meta file (typically located in your stream folder for the given vehicle). In here you want to set the<gameName> property to match the given vehicle mode in yourvehicles table in database. There is a youtube guide here, I don't understand the language but the video itself should give you an idea.

NO DISPLAY VEHICLES There are no display vehicles in the showroom.

✔️ Please re-install the resource completely and follow all steps from #INSTALLTION.

AIRCRAFTS, BOATS ETC. Aircrafts, boats or other custom types doesn't work properly as display?

✔️ By default the resource only supports cars as display vehicles and nothing else. However, aircrafts and other types may as well work. It's not supported and not intended by the resource. To purchase custom types, please use the Config.MenuDealerships.

🆘 IF YOU HAVE TRIED YOUR BEST AND NOTHING WORKS, THEN CONTACT US ON OUR OFFICIAL DISCORD: CLICK HERE.

Last updated