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:
| Resource | Role |
|---|---|
| lb-phone | Host phone for the application |
| ox_lib | Shared library |
| oxmysql | Data 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:
ensure oxmysql
ensure ox_lib
ensure lb-phone
ensure lo_fripedWARNING
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.
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
- Start (or restart) your server.
- Check the console: no errors related to
lo_friped,oxmysqlorlb-phone. - On a connected player, open the phone then the App Store: the Friped app should appear.
- Install and open the application: the home page should load.
- 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
- Configuration — tailor
config.luato your server.