Skip to main content

Credits Not Updating

Problem: Player credits don’t change after making a purchase or receiving credits from admin.Solutions:
1

Check Database Connection

Verify oxmysql is properly installed and connected:
ensure oxmysql
ensure r_store
2

Verify Database Tables

Check that these tables exist in your database:
  • r_store_players
  • r_store_purchases
3

Check Server Console

Look for SQL errors in your server console.
4

Verify Player Identifier

Ensure your framework’s player identifier matches the database format. Check server/sv_*.lua for identifier handling.

Purchase Issues

Problem: Purchased vehicles don’t spawn.Solutions:
1

Verify Vehicle Names

Ensure vehicle spawn names match your server’s vehicle resources. Check the vehicle configuration in the script.
2

Check Framework Vehicle Function

Test if your framework’s vehicle spawning works with other resources.
3

Check Garage Space

Some frameworks require garage space. Verify the player has available garage slots.
4

Check Console Errors

Look for errors in server console when purchasing vehicles.
Problem: Items purchased but not added to inventory.Solutions:
  • Verify inventory system configuration matches your server:
    R.Inventory = "ox_inventory"
    
  • Check if inventory is full
  • Ensure item names match your inventory items
  • Check server console for errors
Problem: Weapons purchased but not received.Solutions:
  • Check inventory system compatibility
  • Ensure inventory has space
Problem: Money purchases don’t add funds.Solutions:
  • Check currency configuration:
    R.MoneyCurrency = "bank" -- or "cash", "black_money"
    
  • Verify the currency type exists in your framework
  • Check server console for errors

Test Drive Issues

Problem: Test drive doesn’t spawn vehicle.Solutions:
  • Check test drive spawn location is valid:
    R.TestDrivePos = vector4(-1274.5339, -3389.3430, 13.9401, 329.8687)
    
  • Ensure the coordinates are accessible (not in a building or underwater)
  • Verify vehicle model is valid

Integration Issues

Problem: Casino button doesn’t appear or doesn’t work.Solutions:
  • Ensure R_Casino is installed and running
  • Enable casino integration:
    R.EnableCasino = true
    R.CasinoResourceName = "r_casino"
    R.CasinoCommand = "casino"
    
  • Verify resource name matches exactly
  • Ensure r_casino is started before r_store
Problem: R_FFA wagers don’t use store credits.Solutions:
  • In R_FFA config, enable store credits:
    R.UseRStoreCredits = true
    R.RStoreResourceName = "r_store"
    
  • Ensure resource name matches exactly
  • Restart both resources:
    restart r_store
    restart r_ffa
    

UI/Display Issues

Problem: Vehicle/item images don’t display.Solutions:
  • Check if image URLs are valid
  • Check browser console for 404 errors

Database Issues

Problem: SQL errors about missing tables.Solutions:
  • Import the SQL file manually
  • Or enable auto-insert:
    R.EnableAutoinsert = true
    
  • Start the resource once again.

Still Having Issues?

If you’ve tried all solutions and still experiencing problems:
When asking for support, always include:
  • Your framework (ESX/QBCore/QBX)
  • Your inventory system
  • Server console errors
  • What you’ve already tried