TebexDiscordYouTubeTwitch
  • 👋Introduction
  • Information
    • 💬Discord Roles
    • 🔐FiveM Asset Escrow
    • 🤝Support Plans
    • 🌐Showcase Server
    • ⁉️Frequently Asked Questions
    • ⭐Staff & Beta Tester Applications
  • Paid Resources
  • 🛡️PHYLAX AC
  • 🔫BetterFight Evolved
    • 📚About BFE
      • 💁‍♀️Features
        • 🎯Recoil System
        • 💢Crosshair System
        • 🔥Temperature System & Jamming
        • 🔫Weapon Damages
        • 🎥ViewCam Enforcer
        • ♨️Triggerbot System
        • 🦘Jump Spam & Roll Prevention
        • 🥢Remove Whipping & Melee One Shot Prevention
      • 🔁Dependencies & Compatibility
      • ⚡Optimization
      • 🛡️Security
      • 🔐Encryption - FiveM Escrow
      • 🆕Changelogs
    • ⚙️Configuration Settings
      • ⚙️Master Config
      • ⚙️Weapons Config
      • ⚙️Security Config
      • ⚙️Discord Logs Config
    • ⤵️Base Installation
    • ⬅️Exports
  • 🏪Store Robberies Evolved
    • 📚About SRE
      • 💁‍♀️Features
        • 👨‍💼AI Shopkeeper System
          • 🗣️Tasks & Behaviors
          • 🤠Character Manipulation
        • 🔫Realistic Robbery Mechanics
        • 🚨Security Systems and Measures
        • 🛠️Customizable Store Configuratins
      • 🔁Dependencies & Compatibility
      • ⚡Optimization
      • 🛡️Security
      • 🔐Encryption - FiveM Escrow
      • 🆕Changelogs
    • ⚙️Configuration Settings
      • ⚙️Master Config
      • ⚙️Stores Config
        • ⚙️Global Store Settings
        • ⚙️Individual Store Settings
          • ⚙️Main Settings
          • ⚙️Polyzone Settings
          • ⚙️Shopkeeper Settings
          • ⚙️Stealable Settings
          • ⚙️Security Settings
      • ⚙️AI NPC Config
        • ⚙️Shopkeeper Character Settings
        • ⚙️Shopkeeper Animation List
        • ⚙️Shopkeeper Speech List
      • ⚙️Player Speech List
      • ⚙️Security Config
      • ⚙️Discord Logs Config
    • ⤵️Base Installation
    • 🛡️Security Integration
    • ⬅️Exports
  • 👁️HawkEye Surveillance
    • 📚About HES
      • 💁‍♀️Features
        • 📹CCTV Cameras
        • 🌐Jammers & Tracker
        • 🛠️Dynamic Configurations
      • 🔁Dependencies & Compatibility
      • ⚡Optimization
      • 🛡️Security
      • 🔐Encryption - FiveM Escrow
      • 🆕Changelogs
    • ⚙️Configuration Settings
      • ⚙️Master Config
      • ⚙️Camera & Jammer Config
        • ⚙️Items
        • ⚙️Camera Settings
      • ⚙️Security Config
      • ⚙️Discord Logs Config
    • ⤵️Base Installation
    • 🛡️Security Integration
    • ⬅️Exports
  • 🏦Pacific Bank Robbery
    • 📚About PBR
      • 💁‍♀️Features
        • 👨‍👩‍👦Ped Handler & Security Guards
        • 💡Vault Breaching Methods
        • 🔒Laser Security System
        • 💰Stealables & Robbery Mechanics
        • 🚪Doorlocks & Alarm System
        • 🖥️Server Synchronization
        • 🛠️Extensive Configurations
      • 🔁Dependencies & Compatibility
      • ⚡Optimization
      • 🛡️Security
      • 🔐Encryption - FiveM Escrow
      • 🆕Changelogs
    • ⚙️Configuration Settings
      • ⚙️Master Config
      • ⚙️Bank Config
      • ⚙️Security Config
      • ⚙️Discord Logs Config
    • ⤵️Base Installation
    • ⬅️Exports
  • 🏦Paleto Bank Robbery
    • 📚About PBR
      • 💁‍♀️Features
        • 👨‍👩‍👦Ped Handler & Security Guards
        • 💡Vault Breaching Methods
        • 🪛Locker Drilling
        • 💰Stealables & Robbery Mechanics
        • 🚪Doorlocks & Alarm System
        • 🖥️Server Synchronization
        • 🛠️Extensive Configurations
      • 🔁Dependencies & Compatibility
      • ⚡Optimization
      • 🛡️Security
      • 🔐Encryption - FiveM Escrow
      • 🆕Changelogs
    • ⚙️Configuration Settings
      • ⚙️Master Config
      • ⚙️Bank Config
      • ⚙️AI NPC Config
      • ⚙️Security Config
      • ⚙️Discord Logs Config
    • ⤵️Base Installation
    • ⬅️Exports
  • 🚘The Complete Vehicle System
    • 📙About TCVS
      • 💁‍♀️Features
      • 🔁Dependencies & Compatibility
      • ⚡Optimization
      • 🛡️Security
      • 🔐Encryption - FiveM Escrow
      • 🆕Changelogs
    • ⤵️Base Installation
    • ⚙️Configuration Settings
      • ⚙️Master Config
      • ⚙️Security Config
      • ⚙️Discord Logs Config
      • ⚙️Public Garages Config
      • ⚙️Private Garages Config
      • ⚙️Impound Config
      • ⚙️Insurance Config
      • ⚙️Parts Config
      • ⚙️Locksystem Config
      • ⚙️Trackers Config
      • ⚙️Vehicle Info Config
    • 🚗Vehicle Shop Integration
    • 👨‍🔧Mechanic Integration
    • 🛡️Security Integration
    • 🚀Snippets
      • ⭕QB-RadialMenu
    • ⬅️Exports
Powered by GitBook
On this page

Was this helpful?

  1. The Complete Vehicle System

Vehicle Shop Integration

Learn how to seamlessly integrate our system with your vehicle shop.

PreviousVehicle Info ConfigNextMechanic Integration

Last updated 1 year ago

Was this helpful?

We provide modified base resources tailored for each supported framework. Download them from the following links

Incorporating our system with your vehicle shop requires specific modifications to your server's vehicle shop code. You should remove vehicle spawning and database entry for vehicle entry in your shop's code, as our resource REQUIRES to handle these functions. It is REQUIRED to perform these adjustments exclusively within our resource.

In the example below, we are creating an array with all the necessary variables and values to be parsed through the event.

local Player = QBCore.Functions.GetPlayer(src)
local data = {
        source = src, --Who is the source. Send the Player ID. Also make sure it is number!
        hash = GetHashKey(vehName), --The hash number of the vehicle
        coords = vehicle.location, --This is a vector 4 location. Inlcludes x,y,z,heading.
        identifier = owner, --Requires the owner of the vehicle. (Player.PlayerData.citizenid - QBCORE)
        license = Player.PlayerData.license, --This is license id, you can leave it blank
        vehicleName = vehName, --The name of the vehicle in a string format - ("adder")
        balance = 0, --Only for QBCORE
        vehPaymentsLeft = 0, --Only for QBCORE
        paymentAmount = tonumber(vehiclePrice), --Only for QBCORE
        financeTime = 0, --Only for QBCORE
}
TriggerEvent("realisticVehicleSystem:server:addVehicle", data)

If you wish to include specific settings for the vehicle, like locking it or applying custom colors, you can add additional options to the data table. Please check all possible options through the addVehicle event in server/database.lua.

In the example below, we are sending additional variables. Colours (colour1, colour2), Lockstate to false, and Tracker Data.

local Player = QBCore.Functions.GetPlayer(src)
local data = {
     source = src, --Who is the source. Send the Player ID. Also make sure it is number!
     hash = GetHashKey(vehName), --The hash number of the vehicle
     coords = vehicle.location, --This is a vector 4 location. Inlcludes x,y,z,heading.
     identifier = owner, --Requires the owner of the vehicle. (Player.PlayerData.citizenid - QBCORE)
     license = Player.PlayerData.license, --This is license id, you can leave it blank
     vehicleName = vehName, --The name of the vehicle in a string format - ("adder")
     colour1 = 0, --Change me with the colour you want. Supports RGB as well.
     colour2 = 0, --Change me with the colour you want. Supports RGB as well.
     locked = false, --Sets the vehicle to unlocked.
     trackerData = {
                type = 0, --0 means not intalled, 1 means basic, 2 means advanced.
                name = plate, --Default name of tracker is the plate. Advanced trackers support name changing.
                status = 0, --0 means normal tracker mode, 1 means emergency mode, 2 means stolen mode.
      }
}
TriggerEvent("realisticVehicleSystem:server:addVehicle", data)

In case you encounter a server-sided error indicating that database.lua - line x is nil, you should resolve this by adding an additional parameter. The TriggerEvent in your vehicle shop should look like this:

TriggerEvent("realisticVehicleSystem:server:addVehicle", 1, data)
🚘
🚗
qb-vehicleshop - QBCORE
qbx_vehicleshop - QBOX
esx_vehicleshop - ESX
okokVehicleShop - CUSTOM
cdev_vehicleshop - CUSTOM
jg-dealerships - CUSTOM
lc_dealership - CUSTOM
ak47_cardealer - CUSTOM - COMING SOON
rcore_pdm - CUSTOM - COMING SOON