Phone App
The banking UI can run as a native mobile app inside a phone resource, so
players open their bank straight from the in‑game phone. lb-phone is wired in
automatically; RoadPhone and yseries each need one small manual entry.
Every phone below loads the same web build over cfx-nui, so three things
must be true no matter which phone you use:
- The resource folder is named
bablo-banking(the app URLs point atcfx-nui-bablo-banking). - The web build exists at
src/web/dist(shipped by default). bankappicon.pngsits in the resource root (already listed infxmanifest.lua).
If you renamed the resource, replace bablo-banking in every URL below
with your folder name.
The ?phone=<name> value at the end of each URL is what tells the UI to render
in standalone phone mode. Keep it as shown for each phone.
lb-phone is registered automatically — there are no manual entries.
Just make sure it is enabled in config.lua:
Config.PhoneApp = {
Enabled = true, -- master switch
PhoneResource = 'lb-phone',
Identifier = 'bablo-bank',
Name = 'Banking',
Description = 'Banking app',
Developer = 'Bablo',
DefaultApp = true, -- pre-installed on the home screen
Size = 59812,
FixBlur = true,
Icon = 'bankappicon.png',
RetryIntervalMs = 5000,
}Restart bablo-banking. The Banking app appears on the phone
automatically (it registers itself through lb-phone’s AddCustomApp export
and re-registers if lb-phone restarts).
Notifications on lb-phone use lb-phone’s own native banner.
Troubleshooting
The app icon shows but the screen is blank / white
bablo-banking,
update cfx-nui-bablo-banking in the app URL and the icon URLs to your
folder name, then restart the phone resource.The app never appears on the phone
bablo-banking, that
bankappicon.png exists in the resource root, and that src/web/dist is
present. For lb-phone specifically, make sure Config.PhoneApp.Enabled = true
and PhoneResource matches your lb-phone folder name.
