Documentation
R_Vehicleshop

r_vehicleshop Installation

Install r_vehicleshop on ESX, QBCore or QBox: ox_lib and oxmysql, optional ox_target or qb-target, server.cfg start order and troubleshooting.

Prerequisites

R_Vehicleshop needs:

  • ox_lib: callbacks, notifications and locales
  • oxmysql: database
  • A framework: ESX, QBCore or QBX
  • Optional: ox_target or qb-target (otherwise players press E at the seller)

Installation Steps

Download & Extract

  1. Download R_Vehicleshop from your Cfx.re Portal
  2. Extract the folder into your server's resources directory
  3. Make sure the folder is named exactly r_vehicleshop

Database

The vehicle table is created automatically on first start if it is missing (R.EnableAutoinsert = true). Your framework normally already has it:

  • ESX → owned_vehicles (sql/esx.sql)
  • QBCore / QBX → player_vehicles (sql/qb.sql)

Both files are included if you prefer to import them yourself.

Add to server.cfg

Ensure the resource after ox_lib, oxmysql, your framework and your target resource:

ensure ox_lib
ensure oxmysql
ensure ox_target
ensure r_vehicleshop

Stop any other vehicle shop that uses the same location (for example esx_vehicleshop or qbx_vehicleshop at Premium Deluxe Motorsport). Two shops spawning showcase vehicles on the same spots will overlap.

Set your language (optional)

R_Vehicleshop uses the ox_lib locale system. Pick the language with a convar in server.cfg:

setr ox:locale "en"   # en | fi

Discord logs (optional)

Open server/sv_custom.lua and paste your webhook URL into Webhook. Every purchase is logged with the vehicle image and the buyer's identifiers.

Restart & connect

Restart your server and walk up to the seller at Premium Deluxe Motorsport. The blip is on the map. Target the ped (or press E) to open the showroom.

Next Steps

Troubleshooting

Common Issues

View the troubleshooting guide