Skip to content
Documentation
Server Essentials4Vehicle Shop

r_vehicleshop Installation

Install r_vehicleshop: download it from the Cfx.re Portal and ensure it after ox_lib, oxmysql, ESX, QBCore or QBX and your target script.

Prerequisites

  • ox_lib
  • oxmysql
  • 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
  • r_vehicleshop
    • bridgeopen: prompt style and custom target
      • cl_textui.luaR.TextUI = 'custom'
      • cl_target.luaR.Target = 'custom'
    • client
      • cl_custom.luanotifications, fuel, HUD hooks
    • localesen, fi
      • server
        • sv_custom.luaDiscord webhook, saving, keys
      • sqlonly if you import it yourself
        • config.luaevery setting, shops and vehicles
        • fxmanifest.lua

      Add to server.cfg

      Put it after ox_lib, oxmysql, your framework and target:

      ensure ox_lib
      ensure oxmysql
      ensure qbx_core
      ensure ox_target
      ensure r_vehicleshop

      Language (optional, default English):

      setr ox:locale "en"   # en | fi

      Stop any other vehicle shop at Premium Deluxe Motorsport (like esx_vehicleshop or qbx_vehicleshop), or the display cars overlap.

      Discord logs (optional)

      Paste your webhook into Webhook at the top of server/sv_custom.lua.

      Restart & connect

      Restart your server, or run this in the server console. The vehicle table is created if your framework doesn't have one yet.

      Server console
      refresh
      ensure r_vehicleshop
      Started resource r_vehicleshop

      Go to the seller at Premium Deluxe Motorsport (map blip Vehicle Shop) and open the showroom.

      Updates

      The console tells you when a new version is out. Download it from the Cfx.re Portal and replace the folder, keeping your config.lua, bridge/, client/cl_custom.lua, server/sv_custom.lua and locales.

      Keep the folder name r_vehicleshop and don't change author in fxmanifest.lua, or the update check stops.

      Next Steps