Configuration
All of Friped's configuration lives in the config.lua file, at the root of the resource. This file is excluded from escrow (escrow_ignore), so you can edit it freely.
TIP
After each change to config.lua, restart the resource (restart lo_friped) to apply the changes.
Main options
| Option | Type | Default | Description |
|---|---|---|---|
Config.Locale | string | 'en' | Application language (must match a file in locales/, e.g. 'fr' → locales/fr.json). |
Config.Framework | string | "qbox" | Framework used for the banking system (auto, esx, qb, qbox, ox). |
Config.ThemeColor | string | "FF09B1BA" | Theme color (Vinted style, teal/turquoise), in ARGB format. |
Config.StaffGroups | table | {'owner','admin','superadmin','god'} | Groups with access to moderation functions. |
Config.MaxListingsPerUser | number | 50 | Maximum number of listings per user. |
Config.MaxImagesPerListing | number | 5 | Maximum number of photos per listing. |
Config.MaxTitleLength | number | 100 | Maximum length of a listing title. |
Config.MaxDescriptionLength | number | 2000 | Maximum length of the description. |
Config.MinPrice | number | 1 | Minimum price of a listing. |
Config.MaxPrice | number | 10000000 | Maximum price of a listing. |
Config.Currency | string | '$' | Currency symbol displayed. |
Config.MaxMessageLength | number | 1000 | Maximum length of a message. |
Config.MessageHistoryLimit | number | 50 | Number of messages loaded in history. |
Config.MaxFavoritesPerUser | number | 100 | Maximum number of favorites per user. |
Config.MinRating | number | 1 | Minimum rating of a review. |
Config.MaxRating | number | 5 | Maximum rating of a review. |
Config.ListingExpirationDays | number | 30 | Listing expiration delay, in days (0 = never). |
Config.ServiceFeePercent | number | 5 | Service fee charged on the sale price (in %). |
Framework & banking system
Config.Framework determines how Friped credits and debits your players' bank during wallet deposits/withdrawals.
Config.Framework = "qbox"
--[[
Supported frameworks:
* auto : automatic detection
* esx : es_extended
* qb : qb-core
* qbox : qbx_core
* ox : ox_core
]]NOTE
Use "auto" to let Friped automatically detect the framework present on your server.
Theme & moderation
Config.ThemeColor = "FF09B1BA"
Config.StaffGroups = {'owner', 'admin', 'superadmin', 'god'}Config.ThemeColorsets the accent color of the interface, in ARGB format (alpha + RGB).Config.StaffGroupslists the groups allowed to access moderation functions (managing listings, users…).
Listings, prices & fees
Config.MaxListingsPerUser = 50
Config.MaxImagesPerListing = 5
Config.MaxTitleLength = 100
Config.MaxDescriptionLength = 2000
Config.MinPrice = 1
Config.MaxPrice = 10000000
Config.Currency = '$'
Config.ListingExpirationDays = 30
Config.ServiceFeePercent = 5These values frame listing creation, the price bounds and the fee charged on each sale.
TIP
Set Config.ListingExpirationDays = 0 so listings never expire.
Categories
The categories available in the application. The display name comes from the language files (locales[categories.<id>]); only the id and icon are defined here.
Config.Categories = {
{ id = 'clothing', icon = 'fa-shirt' },
{ id = 'shoes', icon = 'fa-shoe-prints' },
{ id = 'accessories', icon = 'fa-glasses' },
{ id = 'bags', icon = 'fa-bag-shopping' },
{ id = 'jewelry', icon = 'fa-gem' },
{ id = 'electronics', icon = 'fa-mobile-screen' },
{ id = 'vehicles', icon = 'fa-car' },
{ id = 'housing', icon = 'fa-house' },
{ id = 'sports', icon = 'fa-futbol' },
{ id = 'other', icon = 'fa-box' }
}NOTE
Icons use Font Awesome classes (e.g. fa-shirt). If you add a category, remember to add the matching categories.<id> translation in locales/en.json and locales/fr.json.
Conditions & sizes
Config.Conditions = {
{ id = 'new', color = '#22c55e' },
{ id = 'like_new', color = '#84cc16' },
{ id = 'very_good', color = '#eab308' },
{ id = 'good', color = '#f97316' },
{ id = 'fair', color = '#ef4444' }
}
Config.Sizes = {
'XXS', 'XS', 'S', 'M', 'L', 'XL', 'XXL', 'XXXL',
'36', '38', '40', '42', '44', '46', '48',
'Unique'
}Config.Conditionsdefines the conditions offered (the label comes fromlocales[conditions.<id>], thecolorserves as a visual indicator).Config.Sizeslists the available sizes (clothing and shoes).
Notifications
Enable or disable each type of native lb-phone notification:
Config.Notifications = {
newMessage = true, -- New message received
listingSold = true, -- One of your listings was sold
newOffer = true, -- New offer received
priceDropFavorite = true -- Price drop on a favorite
}Languages
Friped ships with 2 languages: English (en) and French (fr), via the locales/*.json files.
- To change the application's language, adjust
Config.Locale(e.g.'fr'). - The value must match an existing file in
locales/(locales/fr.jsonfor'fr'). - You can customize the texts by editing the
locales/en.jsonandlocales/fr.jsonfiles directly.
Config.Locale = 'en'Tips
- Always edit
config.luaat the root (excluded from escrow); do not touch the compiled resource files. - After each change, run
restart lo_friped. - If you add a category or condition, also add its translation in the
locales/files. - Pick a
Config.Frameworkconsistent with your server, or leave"auto"for automatic detection.