External systems
Connect Eleven Phone to your FiveM server: banking (qbx or Renewed), cards through five exports, garages, keys, police CAD, inventory and your taxi panel.
The phone doesn't depend on any particular money or garage script: this is where you tell it which ones your server uses. Out of the box it relies only on the framework, so it works without touching anything. With 'none' that part doesn't exist, and the app that depends on it turns itself off or says so instead of showing a blank screen.
Money
Config.MoneyType = 'qbx'
| Value | What it does |
|---|---|
'qbx' | qbx_core's bank. Charges and pays. No statement. |
'renewed' | Renewed-Banking. Charges and pays. No statement. |
'none' | No money. The Bank app turns itself off. |
Without a statement, the Bank app shows the balance and says transactions aren't available. Taxi, Ads, Sports, Crypto and Messages payments also charge through here.
Cards (Wallet)
The Wallet shows an account's debit cards. It's separate from money because a card needs a bank with accounts and an issuer, and not every bank has those.
Config.CardType = 'none'
| Value | What it does |
|---|---|
'none' | No cards. The Wallet app turns itself off. |
'<your resource>' | The name of the resource that issues them. It must expose the five exports below. |
The phone doesn't store a single row of card data: everything lives in your resource.
The five exports
getCardsPayload(src) --> the whole envelope (below)
issueCard(src, accountId, bankId) --> { ok, reason?, fee? }
setCardFrozen(src, cardId, frozen) --> { ok, reason?, frozen? }
renameCard(src, cardId, label) --> { ok, reason?, label? }
deleteCard(src, cardId) --> { ok, reason? }
src is the player's session id, not the citizenid. The getCardsPayload envelope:
{
ok = true,
cards = { ... }, -- the cards they have
available = { ... }, -- accounts they can STILL issue a card on
banks = { ... }, -- issuers: { bank_id, name, color, icon }
fee = 500, -- the price of one card
next_fee = 0, -- what THE NEXT one will cost, precomputed
first_free = true,
}
Each card in cards:
| Field | Notes |
|---|---|
card_id, account_id, bank_id | Identity. card_id is what comes back in actions. |
account_type | personal, savings, job, gang or shared. Anything else renders as generic. |
account_label, holder | holder is the character's name, not the account's. |
balance | If you don't know it, nil, never 0. |
bank_name, bank_color, bank_icon | Hex colour #rrggbb; icon, a Lucide name (shield, landmark, wallet…). |
last4 | Four digits. |
label | The player's nickname for it. 60 characters max. |
frozen | Frozen by its owner. |
payable | Whether it can be used to pay. Your resource decides. |
created_ts | Unix seconds. Orders the stack. |
Contract rules
- Lists are always lists. Return
{}, nevernil. - Three answers, three screens:
nilmeans "couldn't ask",{ ok = false, reason = 'disabled' }means "no cards here" and{ ok = true, cards = {} }means "hasn't requested one yet" (the screen offering the first card). availableexcludes accounts that already have a card.next_feearrives precomputed, so the price shows before the player taps.- Serialise issuing per citizen, not per account: otherwise two simultaneous requests both come out free.
- Cancelling a card doesn't refund the issuing fee.
If your bank names them differently
Write an adapter in your config.lua. It takes precedence over Config.CardType:
Config.CardAdapter = {
getCardsPayload = function(src) return { ok = true, cards = {} } end,
issueCard = function(src, accountId, bankId) return { ok = true } end,
setCardFrozen = function(src, cardId, frozen) return { ok = true } end,
renameCard = function(src, cardId, label) return { ok = true } end,
deleteCard = function(src, cardId) return { ok = true } end,
}
Garages
Config.GarageType = 'qbx'
| Value | What it does |
|---|---|
'qbx' | The framework's player_vehicles. The list shows; with no garage catalogue there's no "set route" to the garage. |
'none' | The Garage app turns itself off. |
Car keys
The Garage key fob: lock and unlock your own car from nearby (Config.Garaje.MandoDistancia).
Config.KeysType = 'qbx'
| Value | What it does |
|---|---|
'qbx' | qbx_vehiclekeys. |
'none' | No key fob. |
Police
The Garage stolen-vehicle report: the owner flags their car as stolen and the CAD shows it on the vehicle record.
Config.PoliceType = 'none'
| Value | What it does |
|---|---|
'eleven-police' | Eleven Police MDT, with its stolen-vehicle reports feature enabled. |
'none' | No stolen report. |
Everything else
| Key | What for | Values | Default |
|---|---|---|---|
Config.InventoryType | Where the phone lives as an item. With 'none' it always opens. | 'ox_inventory', 'none' | 'ox_inventory' |
Config.RadarSource | Where a speed camera fine was issued, for the map. | 'eleven-police', 'none' | 'none' |
Config.NumbersSource | Another phone whose numbers must be respected, so none are repeated while both run. | 'lb-phone', 'none' | 'none' |
Config.TaxiBridge | Resource to notify (server event eleven-phone:taxi:nueva) when a taxi is booked. | resource name, 'none' | 'none' |
Config.ServicesSource | Business system to read who's on duty from (table comercios_services, such as Eleven Comercios). Without it, Qbox duty is used. | resource name, 'none' | 'none' |
Config.ShopPricesSource | Prices and availability of Taxi services from that same system. Without it, the config values apply. | resource name, 'none' | 'none' |
Config.CityRankingSource | Basketball resource (table basketball_rpg) for the Sports "The city" tab. Without it the tab is hidden. | resource name, 'none' | 'none' |
Config.Emote.Resource | Emote menu that plays the animation (with the EmoteCommandStart and EmoteCancel exports). | resource name | 'rpemotes' |
Config.MapAtlas | nui:// URL of a map atlas (2048×2048, north up) for the map snippet on a shared location. | URL or '' | '' |
Taxi with your own dispatch panel
The Taxi app only requests rides. Handling them needs a taxi driver panel. Three keys tie the two halves together, and by default all three belong to the phone itself:
Config.Taxi = {
Tabla = 'eleven_phone_taxi_requests',
EventoNueva = 'eleven-phone:taxi:nueva',
EventoRespuesta = 'eleven-phone:taxi:respuesta',
}
Tabla: where rides are stored. Columns are insql/schema.sql; the panel updates thestatusfield (pending,accepted,completed,rejected).EventoNueva: client event received by players with theConfig.Taxi.Jobjob when a ride comes in.EventoRespuesta: client event your panel sends to the passenger with{ status, ticketRef }when accepting, declining or closing.
If you already have a panel, point all three at its own and they're connected without touching code. The same goes for Config.Podcast.Tabla, if you want to share likes with another screen that has the same episodes.