Skip to main content

Common Installation Issues

Most issues with come from missing dependencies or incorrect configuration. Follow these steps to resolve the most common problems.
1

Check Dependencies

Ensure all required dependencies are installed and started before your r-script resource.

Required for most scripts scripts:

  • ox_lib - UI and utilities
  • oxmysql - Database operations

Frameworks:

  • es_extended (ESX)
  • qb-core (QBCore)
  • qbx_core (QBX)
2

Configure Your Framework

Open the config.lua file in each script and set your framework correctly.For ESX:
R.Framework = "ESX"
R.newESX = true -- Set to false for ESX 1.1
R.CoreName = "es_extended" -- Your core resource name
For QBCore:
R.Framework = "qbcore"
For QBX:
R.Framework = "qbx"
3

Import SQL Files

Each script has a sql.sql file that must be imported into your database. (if needed)Option 1: Manual Import
  • Open your database management tool (HeidiSQL, phpMyAdmin, etc.)
  • Import the sql.sql file from each script folder
Option 2: Auto-Insert
  • Set R.EnableAutoinsert = true in config.lua
  • Start the resource once to create tables automatically
  • Set it back to false after first start (if you wish)

Script-Specific Issues

Problem: Player credits don’t update after purchase or admin command.Solutions:
  1. Check that oxmysql is properly installed and running
  2. Verify database tables exist:
    • r_store_players
    • r_store_purchases
  3. Check server console for SQL errors
  4. Verify player identifier format matches your framework
Problem: Pressing F4 or using /store command does nothing.Solutions:
  1. Ensure ox_lib is started before r_store
  2. Check browser console (F8) for JavaScript errors
  3. Verify the fast key is configured correctly:
    R.EnableFastKey = true
    R.ToggleKey = "F4"
    
Problem: Casino coins reset after disconnect.Solutions:
  1. Verify database tables exist:
    • r_casino_players
    • r_casino_case_cooldowns
  2. Check if using r_store coin integration:
    R.UseRStoreCoins = false -- Or true if using r_store
    R.RStoreResourceName = "r_store"
    
  3. Ensure oxmysql is working correctly
  4. Check server console for database errors
Problem: Players can’t leave the FFA arena.Solutions:
  1. Use the leave command:
    /ffaleave
    
  2. Check that the command is configured:
    R.Commands = {
        leave = "ffaleave",
    }
    
  3. Verify the arena zone configuration is correct
  4. Check for errors in server console when leaving
Problem: Wager matches don’t take/give money.Solutions:
  1. Check r_store integration if using credits:
    R.UseRStoreCredits = true
    R.RStoreResourceName = "r_store"
    
  2. Ensure r_store is started before r_ffa
  3. Verify currency configuration:
    R.Currencies = {
        cash = "currency_cash",
        credits = "currency_credits",
    }
    
  4. Check that players have sufficient balance
Problem: Purchased vehicles don’t spawn.Solutions:
  1. Verify vehicle spawn names match your server’s vehicle resources
  2. Check that your framework’s vehicle spawning function works
  3. Ensure the player has garage space (framework-dependent)
  4. Check server console for errors during vehicle spawn

Database Issues

Problem: Scripts can’t connect to database.Solutions:
  1. Verify oxmysql is properly configured
  2. Check database credentials in your server configuration
  3. Ensure MySQL server is running
  4. Test connection with other resources

Still Having Issues?

If you’ve tried all the solutions above 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