Uber AppNew

Uber App: Configuration

Every option in config/config.lua, from the phone app listing and pricing to start codes, payments, reviews and the wallet.

v1.0.0Escrow protectedQBox · QBCore · ESX

Tip

After editing, restart only the resource with ensure hype-uber-app; a full server restart is not needed.

All options live in config/config.lua. The file returns one table; the sections below follow its order. Durations are in seconds unless noted, distances in meters and money in whole dollars.

General

config/config.lua
Debug = false,
Framework = "auto",
Notifications = "auto",
InGameNotify = { "payment_failed", "cancelled_refunded", "trip_completed", "payment_added", "withdraw_success", "withdraw_failed", "review_tip" },

Prop

Type

Every event in InGameNotify is a key under notify in the locale file, for example new_request, driver_approaching, trip_started or review_received.

App

How the app appears in lb-phone and its App Store.

config/config.lua
App = {
    identifier = "hype-uber",
    name = "LS Rides",
    description = "Request a ride or become a driver and earn.",
    developer = "Los Santos Rides",
    defaultApp = false,
    price = 0,
    size = 38200,
},

Prop

Type

UI

Prop

Type

The app follows the light or dark theme set in the phone settings.

Pricing

The minimum fare is max(BaseFare, distance * PricePerMeter), where distance is the road distance of the route. The rider can offer more, up to the limits below.

config/config.lua
BaseFare = 10,
PricePerMeter = 0.01,

Pricing = {
    Rounding = "ceil",
    MaxOfferMultiplier = 10,
    MaxOffer = 50000,
    MinDistance = 75.0,
    MaxDistance = 25000.0,
    -- ...
},

Prop

Type

Registration

Prop

Type

Driver

config/config.lua
Driver = {
    RequireRegistration = true,
    RequireOnlineStatus = true,
    RequestTimeout = 60,
    DispatchRadius = 0.0,
    RequireVehicle = true,
    AutoWaypoint = true,
    CanCancel = true,
    CancelStatuses = { "accepted", "driver_arriving", "arrived" },
    -- ...
},

Prop

Type

Customer

Prop

Type

See Trip statuses for what each status means.

Trip

Prop

Type

Payment

Prop

Type

Reviews

Prop

Type

Wallet

Fares and tips go to the driver's wallet, not straight to their bank. Drivers withdraw from the Wallet tab.

Prop

Type

Security

Prop

Type

History

Prop

Type

Locales

The language comes from ox_lib, so it is set in server.cfg rather than in the config:

server.cfg
setr ox:locale "en"

en and tr are included. To add a language, copy locales/en.json, translate it, save it with the language code as its name (e.g. de.json) and set ox:locale to that code. The same file holds the app texts, the error messages and the notifications.

config.lua
en.json
tr.json
fxmanifest.lua

On this page