Troubleshooting
Common issues and solutions for NightRider's Development scripts.
General Issues
Script not starting
Resource fails to start or shows errors in the server console.
Solutions:
- Make sure the resource folder name matches exactly (case-sensitive) — e.g.
NR_CarPlay,NR_PoliceJob,NR_Tablet - Check that
ensure ResourceNameis in yourserver.cfg - All dependencies must start before the NightRider resource in your
server.cfg - Check the F8 console and server console for specific error messages
- Try a full server restart rather than just restarting the resource
Dependencies not found
Console shows errors about missing exports or resources not found.
Solutions:
- Verify all required dependencies are installed — most scripts require
qbx_core,ox_lib, andox_inventory - Ensure dependencies are started before NightRider scripts in
server.cfg - NR_CarPlay and NR_DJ also require
xsound— addensure xsoundbefore those resources - NR_PoliceJob requires
ox_targetand a dispatch system (configured for Kartik MDT by default) - Check the individual script's documentation page for its full dependency list
Framework not detected
Console shows "Framework not found" or similar errors.
Solutions:
- Open
config.luaand verifyConfig.Frameworkmatches your framework — use'qbx'for QBX Core or'qb-core'for QBCore - Verify
Config.FrameworkFoldermatches your framework's resource name (e.g.'qbx_core'or'qb-core') - Ensure your framework resource starts before NightRider scripts in
server.cfg - Restart your entire server rather than just the resource
Items not showing in inventory
Script items (harness, lockpick, tablet, USB keys, dirty money, etc.) don't appear in the player inventory.
Solutions:
- Add the item definitions to
ox_inventory/data/items.lua— see each script's documentation for exact item configs - Add the item images to your inventory resource's image folder
- Restart
ox_inventoryafter adding new items - For NR_Tablet: ensure the
tabletitem and all USB key items (crew_usb,mdt_usb,boost_usb,house_usb,ug_usb) are added - For NR_Harness: ensure the
harnessitem is added - For NR_MailBoxes: ensure the
lockpickand reward items are added - For NR_MoneyWash: ensure the
dirtymoneyandmoneywash_machineitems are added
ox_target interactions not appearing
No interaction prompts show up when looking at NPCs, objects, or target zones.
Solutions:
- Ensure
ox_targetis installed and started before the NightRider resource - Check that you are close enough to the interaction point
- Verify
ox_libis also running — many target interactions depend on it - For NR_PoliceJob: make sure the player has the
policejob and is on duty - For NR_PawnShop: verify the pawn shop location coordinates in
config.lua
Database errors
SQL errors appear in the console when starting a resource.
Solutions:
- Import the SQL file included with the resource (if applicable)
- Make sure your database connection is configured correctly in
server.cfg - Check that you're not importing the SQL file twice (duplicate table errors)
- Ensure
oxmysqlis installed and started — required by scripts like NR_Harness
Script-Specific Issues
NR_CarPlay / NR_DJ: No audio playing
Audio-based scripts require xsound to be installed and started before the NightRider resource.
- Install xsound if you haven't already
- Add
ensure xsoundbeforeensure NR_CarPlayorensure NR_DJin yourserver.cfg - NR_CarPlay uses YouTube URLs for music — make sure you're pasting a valid YouTube link
- For NR_DJ: verify you have access to the booth (check job/gang restrictions in
config.lua)
NR_CarPlay: Dashboard not opening
- You must be inside a vehicle to open the dashboard
- Press F5 or use the
/opendashboardcommand - Ensure
ox_libis started before NR_CarPlay - Check the F8 console for errors
- Enable
Config.Debug = trueinconfig.luafor detailed logs
NR_CarPlay: Backup camera not working
- The backup camera activates when the dashboard is open and you shift into reverse
- Use debug commands
/backupcamand/camproximityto test functionality - Check the F8 console for any proximity sensor errors
NR_PoliceJob: No dispatch notifications
- The script is configured for Kartik MDT by default — check the dispatch export on
client.lualine 443 - If using a different MDT/dispatch, modify the export to match your system
- Verify the player has the
policejob and is on duty - Automatic dispatches run every 15 minutes by default (
Config.DispatchInterval)
NR_PoliceJob: Mission won't complete
- You must be within 50 meters of Bolingbroke Penitentiary
- The prisoner must be in the vehicle
- A minimum transport time of 10 seconds is required (anti-exploit)
- Missions auto-cancel after 30 minutes of inactivity
- There is a 60-second cooldown between manual mission starts
NR_PoliceJob: NPCs not spawning
- Ensure the NPC models in
config.luaare valid - Verify
ox_targetis running - Check the spawn location coordinates in
Config.SpawnLocations
NR_MailBoxes: Can't interact with mailboxes
- Check that the player has a
lockpickitem in their inventory - Verify time restrictions aren't blocking the robbery (check
Config.TimeRestriction) - The mailbox may be on cooldown from a previous robbery
- Ensure
ox_targetandox_inventoryare both running
NR_Tablet: Apps not showing
- USB keys must be inserted into the dock — use the tablet and click "Insert Required Items"
- Verify the USB item is listed in
Config.AllowedTabletItemsinconfig.lua - Check the HTML has the correct
data-requiresattribute for the app - VMS Housing is always available without a USB — if it's not showing, check for NUI errors in F8
NR_Tablet: Tablet won't open
- Ensure the
tabletitem is properly added toox_inventory/data/items.luawith the server export - Verify
ox_libis started - Enable
Config.Debug = truefor detailed logs in the F8 console
NR_Tablet: Items not saving in dock
- Verify the stash is configured in
ox_inventory/data/stashes.lua - Ensure the USB items are in the stash whitelist
- Restart
ox_inventoryafter adding the stash configuration - Non-whitelisted items are automatically removed and returned to the player
NR_Tablet: Custom app not working
- Check
NR_Tablet/client/custom_apps.luafor your app logic - Verify the export or event exists in the target script
- Ensure the app's icon is placed in
NR_Tablet/web/assets/ - Check F8 console for errors when clicking the app
NR_Harness: Harness not equipping
- Ensure the
harnessitem is added toox_inventory/data/items.lua - Player must be inside a vehicle to equip the harness
- Verify
oxmysqlis running for harness data storage
NR_PawnShop: Can't sell items
- Verify the pawn shop location coordinates in
config.lua - Check that sellable items are configured in
Config.Items - Ensure
ox_targetandox_inventoryare running - Verify qbx_core notifications are working
NR_MoneyWash: Washing not starting
- Ensure the player has both the
moneywash_machineanddirtymoneyitems - Check that items are properly defined in
ox_inventory/data/items.lua - Verify
ox_libis running for progress bar functionality
Recommended server.cfg Order
Dependencies must start before NightRider scripts. Here is a recommended order:
ensure qbx_core
ensure oxmysql
ensure ox_lib
ensure ox_inventory
ensure ox_target
ensure xsound
ensure NR_PoliceJob
ensure NR_Harness
ensure NR_PawnShop
ensure NR_CarPlay
ensure NR_DJ
ensure NR_MailBoxes
ensure NR_MoneyWash
ensure NR_Tablet
Enabling Debug Mode
Most NightRider scripts include a debug option. Set Config.Debug = true in the script's config.lua to get detailed logs in the F8 console. This helps identify exactly where an issue is occurring.
Performance
- All NightRider scripts are optimized to run at 0.00-0.01ms
- Use
resmon 1in the F8 console to check resource performance - If a script shows high usage, check for conflicts with other resources
- Ensure you're not running duplicate resources that handle the same functionality
Still Need Help?
If your issue isn't listed here:
- Join our Discord server for community support
- For paid scripts, open a support ticket for priority help
- When asking for help, include: server console errors, framework version, script version, and your
server.cfgload order