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

Before running the SQL file, make sure to delete all tables starting with phone_ in your database.

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

Install all dependencies

Download and install the following dependencies:

Add to server.cfg

All resources used by lb-phone need to be started before lb-phone itself. This includes your framework, oxmysql, inventory etc. Adding ensure lb-phone to the end of your server.cfg should be enough. Make sure to start any custom apps after lb-phone.

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-phone/server/apiKeys.lua.

Configure

The phone should work out of the box, but you can configure it to your liking. See configuration for more information. If you encounter any issues, see common issues.

How to update

Backup phone

Take a backup of your phone resource. We recommend doing this by creating a ZIP file of the lb-phone folder.

Backup database

Take a backup of your database. You can do this by exporting the database in HeidiSQL. This step is not needed if no changes to the database have been made. It says in the patch notes if you need to update your database.

  1. Right click on your database
  2. Click "Export database as SQL"
  3. Make sure the "Create" boxes are checked, and that the "Drop" boxes are unchecked
  4. Select "Insert ignore (do not update existing)" in the "Data" field
  5. Choose a file name and location
  6. Click "Export"

Delete old phone

Delete the old lb-phone resource from your server.

Download new phone

Download the latest version of the phone from keymaster (opens in a new tab).

Configure

If you have made any changes to the config files, make sure to reapply them. Unless stated otherwise at the end of the patch notes, you can copy the entire config folder.