Skip to content

Installation ​

This page covers the installation of Friped, the marketplace application for lb-phone.

Requirements ​

Before you begin, make sure the following resources are already installed and working on your server:

ResourceRole
lb-phoneHost phone for the application
ox_libShared library
oxmysqlData persistence

A supported framework is also required for the banking system: ESX, QBCore, QBox or ox_core (see Configuration).

1. Add the resource ​

Place the lo_friped folder in the [phone] directory of your resources, alongside lb-phone:

resources/
└── [phone]/
    ├── lb-phone/
    └── lo_friped/

TIP

Placing the application in the same [phone] folder as lb-phone ensures it starts after the phone and is detected automatically by the App Store.

2. Start order ​

In your server.cfg, start the resources in this order. Dependencies must always be launched before Friped:

cfg
ensure oxmysql
ensure ox_lib
ensure lb-phone
ensure lo_friped

WARNING

If lo_friped starts before its dependencies, the application will not register correctly with lb-phone. This order is mandatory.

3. Database ​

No manual SQL import is required: Friped creates its tables automatically on the first start of the resource, through oxmysql.

NOTE

Just make sure oxmysql is properly configured (the mysql_connection_string in your server.cfg) and started before Friped.

4. Interface (UI) ​

The interface is already compiled and shipped with the resource in ui/dist/. No build step is needed: the fxmanifest.lua references ui/dist/index.html directly.

lua
ui_page 'ui/dist/index.html'

files {
    'ui/dist/index.html',
    'ui/dist/**/*',
    'locales/*.json'
}

TIP

You do not need any development tooling (Node, npm…). Download the resource, start it, and it is ready.

Verification ​

  1. Start (or restart) your server.
  2. Check the console: no errors related to lo_friped, oxmysql or lb-phone.
  3. On a connected player, open the phone then the App Store: the Friped app should appear.
  4. Install and open the application: the home page should load.
  5. Confirm the tables were created in the database (on first launch) on your MySQL server.

If the app does not appear, double-check the start order and that the resource is indeed in [phone].

Next steps ​