π οΈTroubleshooting
This guide provides solutions to common issues you might encounter while installing or using the Billing System.
General Issues
The Tablet Won't Open (F7 Key)
Possibilities:
Wrong Job: Check if your job is listed in
Config.AllowedJobsinconfig.lua.Keybind Conflict: Another resource might be using the same key. Try changing
Config.Keybind.Resource Not Started: Ensure
src-billingis started in yourserver.cfg.Console Errors: Open the F8 console to check for any client-side JavaScript or Lua errors.
Solution:
Type
/ensure src-billingin the console to restart the resource.Check the F8 console for error messages.
Ensure you have a job that is allowed to open the tablet.
Technical Issues
Framework Not Detected
By default, the bridge uses Config.Framework = 'auto'. Occasionally, detection might fail if your framework resource is named differently.
Check:
Is your framework (QBox, QBCore, or ESX) started before
src-billing?Are you using a highly modified or renamed version of a framework?
Solution:
Manually set the framework in
config.lua:
Database Errors
If you see errors related to MySQL or missing tables in your server console.
Check:
Did you import
sql/billing.sql?Are the table names exactly as expected?
Solution:
Re-import the SQL file.
Ensure your database connection string in
server.cfgis correct.
Payment Issues
Money Not Being Removed
If a player pays an invoice but no money is taken from their account.
Check:
Check the server console for errors when the payment is made.
If using a Custom Framework, verify your
Bridge.RemoveMoneyimplementation inbridge/server.lua.
Solution:
Ensure the
Bridge.RemoveMoneyfunction returnstrueon success andfalseon failure.
Physical Receipt Not Given
Check:
Is
ox_inventorystarted?Is
Config.ReceiptSettings.Enabled = true?Do you have the
receiptitem added to your inventory's items list?
UI Issues
Black Screen or Layout Glitches
If the tablet UI appears broken or shows a black screen.
Possibilities:
NUI Focus: Something might be blocking the NUI focus.
Build Error: If you modified the web code, the build might have failed.
Solution:
Restart the resource:
ensure src-billing.If you made changes to the
webfolder, runnpm run buildagain.Clear your local browser cache (FiveM cache folder).
Getting More Help
If you're still having issues:
Check the Logs: Both server console and F8 client console contain vital clues.
Verify Dependencies: Ensure
ox_liband/orox_inventoryare up to date if you're using them.Open an Issue: If you believe you've found a bug, please report it on the GitHub repository with detailed logs.
Last updated

