Skip to content

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

OptionTypeDefaultDescription
Config.Localestring'en'Application language (must match a file in locales/, e.g. 'fr'locales/fr.json).
Config.Frameworkstring"qbox"Framework used for the banking system (auto, esx, qb, qbox, ox).
Config.ThemeColorstring"FF09B1BA"Theme color (Vinted style, teal/turquoise), in ARGB format.
Config.StaffGroupstable{'owner','admin','superadmin','god'}Groups with access to moderation functions.
Config.MaxListingsPerUsernumber50Maximum number of listings per user.
Config.MaxImagesPerListingnumber5Maximum number of photos per listing.
Config.MaxTitleLengthnumber100Maximum length of a listing title.
Config.MaxDescriptionLengthnumber2000Maximum length of the description.
Config.MinPricenumber1Minimum price of a listing.
Config.MaxPricenumber10000000Maximum price of a listing.
Config.Currencystring'$'Currency symbol displayed.
Config.MaxMessageLengthnumber1000Maximum length of a message.
Config.MessageHistoryLimitnumber50Number of messages loaded in history.
Config.MaxFavoritesPerUsernumber100Maximum number of favorites per user.
Config.MinRatingnumber1Minimum rating of a review.
Config.MaxRatingnumber5Maximum rating of a review.
Config.ListingExpirationDaysnumber30Listing expiration delay, in days (0 = never).
Config.ServiceFeePercentnumber5Service 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.

lua
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

lua
Config.ThemeColor = "FF09B1BA"
Config.StaffGroups = {'owner', 'admin', 'superadmin', 'god'}
  • Config.ThemeColor sets the accent color of the interface, in ARGB format (alpha + RGB).
  • Config.StaffGroups lists the groups allowed to access moderation functions (managing listings, users…).

Listings, prices & fees

lua
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 = 5

These 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.

lua
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

lua
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.Conditions defines the conditions offered (the label comes from locales[conditions.<id>], the color serves as a visual indicator).
  • Config.Sizes lists the available sizes (clothing and shoes).

Notifications

Enable or disable each type of native lb-phone notification:

lua
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.json for 'fr').
  • You can customize the texts by editing the locales/en.json and locales/fr.json files directly.
lua
Config.Locale = 'en'

Tips

  • Always edit config.lua at 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.Framework consistent with your server, or leave "auto" for automatic detection.