RISK SCRIPTS
TEBEXDISCORD
  • Welcome to RISK DOCUMENTAION
  • Discord Integration
    • Discord Webhooks
    • Discord Bot Token
  • SCRIPTS
    • 🔔Notify
      • ⚙️Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ & Troubleshooting
    • 🚚Cargo Job
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ & Troubleshooting
    • 🖼️Loadingscreen
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • Driving-School
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ & Troubleshooting
    • 🎣FREE AFK Fishing Script
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🚘Vehicle Shop
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🐝Beekeeping Script
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🔎Advanced Metal Detector Script
      • 📝Editable
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🛍️24/7 Market
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🛍️Weapon Market
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🛍️Black Market Script
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🚗Simple Garage
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🎲4 in Row Script
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🎒Outfit Bag Script
      • 💡Installation
      • ⚙️Configuration
      • ⚙️Usage
      • ❔FAQ / Troubleshooting
    • 🔘Radial Menu
      • 💡Installation
      • ⚙️Commands & Event Triggers
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🗒️TicTacToe / X and O
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🏦Simple Banking System
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • ⚙️Advanced Crafting System
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🚜Farming System
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🍕Pizza Delivery Script
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🍾Spin the Bottle
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 🎇Firework Script
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
    • 📦Blindfold
      • 💡Installation
      • ⚙️Configuration
      • 🕵️‍♂️Usage
      • ❔FAQ / Troubleshooting
Powered by GitBook
On this page
  1. SCRIPTS
  2. Vehicle Shop

FAQ / Troubleshooting

Common issues and solutions

  • Q: The script can’t detect ESX or QBCore. A: Confirm es_extended or qb-core is started before this script. If auto-detection fails, set Config.Framework to "esx" or "qb" manually.

  • Q: Markers/NPCs not spawning. A: Make sure you have correct ped models (npcModel), valid coordinates, and useNPC = true. Also ensure your job matches the shop’s jobs.

  • Q: Vehicle not saving to DB. A: If SaveVehicleToDatabase=true but the DB record doesn’t appear, check for MySQL or oxmysql errors in the console. Also ensure the correct DB table (owned_vehicles or player_vehicles) and columns exist.

  • Q: “notAllowed” or “rankTooLow” keeps appearing. A: The script checks HasClientJobAccess and grade. Confirm your job name matches the shop’s jobs array. If using rank-based categories, ensure your job grade is within gradeRange.

  • Q: Test drive dimension not working. A: The script calls SetPlayerRoutingBucket(src, dim). Confirm your server build supports dynamic routing buckets and you do not have dimension conflicts with other resources.

  • Q: Plate generation issues. A: If you set useCustomPlateText=true, all purchased vehicles get the same plate. Otherwise, it uses prefix + random letters + random digits. Adjust lengths in PlateOptions.

  • Q: Error: Unknown column 'type' in 'INSERT INTO' (oxmysql) A: Your database is missing the type column required by the script. Run this SQL query in your database: Then restart your server.

ALTER TABLE `player_vehicles`
    ADD COLUMN `type` VARCHAR(20) NOT NULL DEFAULT 'car' AFTER `mods`;
ALTER TABLE `owned_vehicles`
    ADD COLUMN `type` VARCHAR(20) NOT NULL DEFAULT 'car' AFTER `mods`;
PreviousUsageNextBeekeeping Script

Last updated 10 days ago

🚘
❔