Installation

Installation

Install MariaDB

⚠️
Do not use XAMPP
⚠️
Always take a backup before doing any changes to your database

Install MariaDB (opens in a new tab) version 10.11 or newer, if you don't have it already. You can check your MariaDB version by running SELECT VERSION() in HeidiSQL.

Run the SQL file

⚠️
Do not use phpMyAdmin

Run the lb-tablet/tablet.sql file in your database using HeidiSQL (opens in a new tab).

Optionally, you can run the SQL files in the Optional SQL folder to add default conditions and offences to the MDT.

Install all dependencies

Download and install the following dependencies:

Add item

If you want to require an item to use the table, add the item tablet to your server. Where you do this depends on your framework and inventory.

For default ESX, run the following query in HeidiSQL:

INSERT INTO items (name, label) VALUES ('tablet', 'Tablet');

For default QBCore, go to qb-core/shared/items.lua and add the following:

tablet = { name = 'tablet', label = 'Tablet', weight = 1000, type = 'item', image = 'tablet.png', unique = true, useable = true, shouldClose = true, description = 'Work-related tablet' },

Add to server.cfg

Add start lb-tablet to your server.cfg. Make sure to start it after your framework and essential resources.

Configure API keys

For photo, video and audio uploading, you need to configure an upload method and set your API keys.

Upload method

Set your desired upload method in the config.lua. The default (and recommended) upload method is Fivemanage (opens in a new tab). If you instead want to self-host, you can use lb-upload (opens in a new tab).

Use code LBPHONE10 for 10% off on Fivemanage

Set API keys

After setting an upload method and generating an API key, you need to enter the keys in
lb-tablet/server/apiKeys.lua.

Configure

The tablet should work out of the box, but you can configure it to your liking. The configuration file is located at lb-tablet/config/config.lua.

Script integration

To integrate the tablet with your scripts (e.g. jail, dispatch), you can use the client exports and server exports.