T1GER Tow Trucker

Documentation, troubleshooting and support for T1GER Dealerships resource

INSTALLATION

DEPENDENCIES

Dependency

Download

Install

Description

ESX Society

Optional

Required to use built-in society functions.

ESX Addon Accounts

Optional

Required to use built-in accounting functions.

progressBars

Optional

Use mine or disable and use yours.

START

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

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

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

  4. Install the required and/or optional dependencies.

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

SQL

Please open main.sql and either import or execute the queries into your database to add the items needed for the robberies.

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.

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.I

IMPOUNDS

Each tow-service has it's own unique impound, so tow truckers can impound player-owned vehicles here and they can only be taken out from here.

You need to implement a check or two in your garage resource to prevent players from being able to pull-out vehicles from their garage if it's in a tow-service-impound.

There is an export below to check whether a vehicle is in a tow-service impound or not. It only requires a plate as an argument to check it up. It returns 3 values.

In database, there will be added a new column called tow_impound, which is an integer contain the ID of a specific tow-service. If the value is 0, it means the vehicle is not in any tow service impounds, otherwise the integer represent the ID of the tow service. You can use this column from database to make various checks in your garage resource when pulling/fetching available vehicles.

MISCELLANEOUS

CHAT COMMANDS

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

Command

Description

/towtrucker

Opens the tow trucker interaction menu

/tow

Used to attach/detach vehicle to/from a tow truck.

EXPORTS

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

Export Function

Description

exports['t1ger_towtrucker']:IsVehicleInTowImpound(plate)

Export that returns 'isImpounded' state, 'impoundID' and 'name' of the tow service. Can be used to check whether a vehicle with given plate is in a tow service impound.

SCRIPT NOT WORKING / ERRORS

TITLE Questions/Issue

✔️ Solution/Answer/Guide

Last updated