Common Issues
Errors when inserting the SQL file
Make sure that you are using HeidiSQL instead of phpMyAdmin and that you’re using an up-to-date version of MariaDB.
Please note that if you use a game panel, you may not be able to run the query. Hosts using game panels often have outdated versions of MariaDB and/or use phpMyAdmin. You can either contact your host, or, preferably, switch to a Virtual Private Server/Virtual Dedicated Server.
Phone not opening
Follow these steps:
- Stop your server
- Remove
lb-phonefrom your resources folder - Install a fresh copy from Cfx.re
- Start and join your server
Still having issues?
Try setting Config.DisableOpenNUI to false in lb-phone/config/config.lua. If the phone opens, that means that you have a conflicting resource. You can try disabling other resources to find the conflicting one.
Still having issues? Follow these steps:
- Stop your server
- Set
Config.Debug = trueinlb-phone/config/config.lua - Start and join your server
- Type
ensure lb-phonein your server console - Send a screenshot of BOTH your F8 console AND your server console in #🔰customer-support
- Try to open the phone
- Send a screenshot of BOTH your F8 console AND your server console in #🔰customer-support
Not able to type in inputs
This issue only affects custom apps. It is usually caused by another resource calling SetNuiFocus(false, false) while LB Phone or LB Tablet is open, which removes keyboard focus from the custom app.
To confirm that NUI focus is being changed, paste the code below into the NUI devtools console.
registerPushFunction(function (type, ...args) {
switch (type) {
case 'rootCall': {
const [dataString] = args
const data = JSON.parse(dataString)
if (data.type == 'focusFrame') {
console.log('^2Focusing frame^4', data.frameName, '^7')
focusFrame(data.frameName)
} else if (data.type == 'blurFrame') {
console.log('^1Blurring frame^4', data.frameName, '^7')
blurFrame(data.frameName)
} else if (data.type == 'setHandover') {
handoverBlob = data.data
} else if (data.type == 'setServerAddress') {
serverAddress = data.data
} else if (data.type == 'setZIndex') {
const { frameName, zIndex } = data
if (frameName in citFrames) {
citFrames[frameName].style.zIndex = zIndex
}
}
break
}
case 'frameCall': {
const [frameName, dataString] = args
const data = JSON.parse(dataString)
if (!(frameName in citFrames)) {
return
}
citFrames[frameName]?.contentWindow?.postMessage(data, '*')
break
}
}
})- Connect to your server.
- Open the NUI devtools.
- Open the Console tab.
- Paste the code above and press Enter.
- Recreate the issue in the custom app.
- Look for
Blurring frameorFocusing framein the NUI devtools or F8 console. - If
Blurring frameappears when typing stops working, find the resource that callsSetNuiFocus(false, false)and prevent it from changing focus while LB Phone or LB Tablet is open.
Export x does not exist
Make sure that you are using the export on the correct side. If you are using a client export on the server, or vice versa, you will get this error. Double check that you are using an export that exists. If you check the right sidebar in the documentation, you can see if the export is server or client sided.
Slow server tick / bcrypt hitch
FiveM’s built-in bcrypt functions run on the main server thread. Hashing or verifying a password can therefore cause a server hitch of around 80 ms when players log in to or sign up for an account in LB Phone.
Install loaf_bcrypt to run bcrypt in a separate worker thread. LB Phone detects and uses it automatically when it is started. Add the following before start lb-phone in your server.cfg:
add_unsafe_worker_permission loaf_bcrypt
start loaf_bcryptUnknown column x in ‘field list’
You are missing a database column / field. Sometimes when a phone update is released, a new column is added to the database. You can fix this by running the queries from the #🔨updates channel.
Music not working
You need to configure songs yourself. Follow the music guide to learn how to do this.
AirShare not working / Can’t share my contact
The phone uses OneSync features for AirShare. Make sure that you have OneSync infinity enabled, and that your artifacts are up-to-date.
Likes not updating
If your likes are not updating on social media apps such as Birdy and InstaPic, that usually means that you did not install the SQL file correctly. Usually this happens because you are using an outdated version of MariaDB, or because you are using phpMyAdmin. Make sure to use HeidiSQL and that your MariaDB version is up to date.
Video calls/InstaPic live not working
If you do not see people in video calls or InstaPic live streams, that usually means that your firewall is blocking the connection. Usually, setting up a TURN server will fix this issue. See the WebRTC configuration guide for more information.
Fatal Error: Assertion failure: status.ok() … ServerKVScriptFunctions.cpp”
Please create a zip of your db folder in your server files and send it to Loaf Scripts in a ticket. Then delete the db folder. If the issue persists, set Config.Crypto.Enabled to false.
My cursor is stuck in the center
Enable raw input in your game settings.
I denied microphone access, how do I enable it again?
First make sure that FiveM is not running. Then remove the AppData\Roaming\CitizenFX\media_access.json file. Next time you connect to the server you will be prompted to allow access again.
I’m missing an app
If you’re missing the wallet, garage or services app, that means that the script did not detect your framework, or that you didn’t set it up correctly.
If you’re missing the home app, that means you haven’t configured your housing script correctly. By default, the home app only works with a few scripts. Follow the custom housing scripts guide to add your housing script.