Installation
Install MariaDB
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
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:
- loaf_lib (opens in a new tab)
- oxmysql (opens in a new tab)
- up-to-date server artifacts (opens in a new tab)
- OneSync infinity (opens in a new tab) (optional) – required for a few features, e.g. AirShare
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).
LBPHONE10
for 10% off on FivemanageSet API keys
After setting an upload method and generating an API key, you need to enter the keys inlb-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.
- Right click on your database
- Click "Export database as SQL"
- Make sure the "Create" boxes are checked, and that the "Drop" boxes are unchecked
- Select "Insert ignore (do not update existing)" in the "Data" field
- Choose a file name and location
- 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.