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
  • General Exports
  • Vehicle Parts Related Exports
  • Locksystem Related Exports
  • Garage Related Exports
  • Impound Related Exports
  • Insurance Related Exports
  • Security Integration Exports
  • Extras Exports

Was this helpful?

  1. The Complete Vehicle System

Exports

Explore our selection of exports that enhance your resource functionality.

PreviousQB-RadialMenu

Last updated 1 year ago

Was this helpful?

We offer a selection of exports to enhance your resource functionality, with ongoing expansion plans to accommodate even more features based on your valuable input. Feel free to share your suggestions with us.

General Exports

SERVER-SIDED

When called, returns a 17 character string VIN. Ensures it doesn't exist already in database.

local vin = exports['realisticVehicleSystem']:vinCreator()

SERVER-SIDED

When called, returns a plate. Ensures it doesn't exist already in database.

local vin = exports['realisticVehicleSystem']:plateCreator()

CLIENT-SIDED

When called, returns the full list of properties the vehicles has.

local mods = exports['realisticVehicleSystem']:GetVehicleProperties(vehicle)

SHARED-SIDED

When called, returns the full vehicle list that has been loaded from the database.

local carList = exports['realisticVehicleSystem']:getVehicleList()

SHARED-SIDED

When called, returns the specific vehicle from the vehicle list. Requires the plate of the vehicle.

local vehicleInfo = exports['realisticVehicleSystem']:getVehicleListDataWithPlate(plate)

Vehicle Parts Related Exports

CLIENT-SIDED

When called, fixes the specific part.

exports['realisticVehicleSystem']:fixPart("engine", 1000.00, false)

Read more here:

CLIENT-SIDED

When called, returns an array of the vehicle's parts. Requires the plate of the vehicle.

local array = exports['realisticVehicleSystem']:getVehiclePartsArray(plate)

Read More Here:

CLIENT-SIDED

When called, returns an array of the vehicle's deformation. Requires vehicle entity ID.

local deformation = exports['realisticVehicleSystem']:GetVehicleDeformation(vehicle)

CLIENT-SIDED

When called, sets the vehicle's deformation. Requires vehicle entity ID and deformation array.

exports['realisticVehicleSystem']:SetVehicleDeformation(vehicle, deformation)

CLIENT-SIDED

When called, fixes the vehicle's deformation. Requires vehicle entity ID.

exports['realisticVehicleSystem']:FixVehicleDeformation(vehicle)

Locksystem Related Exports

CLIENT-SIDED

When called, gives the player keys for the vehicle with matching plate until a server restart. Requires a plate.

Ensure the plate of the vehicle does not have spaces in between or at prefix/suffix, or this will not work!

exports['realisticVehicleSystem']:giveVehicleKeysExtra(plate)

CLIENT-SIDED

When called, returns a boolean (true/false) value if the player has keys for the specified vehicle. Requires a plate.

exports['realisticVehicleSystem']:DoesPlayerHaveKeys(plate)

Garage Related Exports

CLIENT-SIDED

When called, stores the vehicle in garage, requires garage ID and plate.

Example:

local isPlayerInsideGaragePoly, polyType, garageID = exports['realisticVehicleSystem']:IsPlayerInsidePoly()

if(isPlayerInsideGaragePoly and polyType == "garage-public")then
    exports['realisticVehicleSystem']:StoreVehicleInGarage(garageID, PLATE)
end

CLIENT-SIDED

When called, opens the garage UI form. Requires garage ID.

Example:

local isPlayerInsideGaragePoly, polyType, garageID = exports['realisticVehicleSystem']:IsPlayerInsidePoly()

if(isPlayerInsideGaragePoly and polyType == "garage-public")then
    exports['realisticVehicleSystem']:SetupGarageForm(garageID)
end

Impound Related Exports

SHARED-SIDED

When called, returns a boolean value (true/false) if the vehicle is impounded.

Example:

local isImpounded = exports['realisticVehicleSystem']:IsVehicleImpounded(plate)

CLIENT-SIDED

When called, opens the impound UI form. Requires impound ID.

Example:

local isPlayerInsideImpoundPoly, polyType, impoundID = exports['realisticVehicleSystem']:IsPlayerInsidePoly()
                
if(isPlayerInsideImpoundPoly and polyType == "impound-retrieve")then
    exports['realisticVehicleSystem']:SetupImpoundForm(impoundID)
end

CLIENT-SIDED

When called, opens the impound lock UI form. Requires impound lock ID.

Example:

local isPlayerInsideImpoundPoly, polyType, impoundID = exports['realisticVehicleSystem']:IsPlayerInsidePoly()
                
if(isPlayerInsideImpoundPoly and polyType == "impound-unlock")then
    exports['realisticVehicleSystem']:SetupImpoundLockForm(impoundID)
end

Insurance Related Exports

CLIENT-SIDED

When called, opens the insurance UI form. Requires insurance ID.

Example:

local isPlayerInsideInsurancePoly, polyType, insuranceID = exports['realisticVehicleSystem']:IsPlayerInsidePoly()
                
if(isPlayerInsideInsurancePoly and polyType == "insurance")then
    exports['realisticVehicleSystem']:SetupInsuranceLockForm(insuranceID)
end

Security Integration Exports

CLIENT-SIDED

When called, returns the Security.EventPrefix variable. Requires the resource calling it.

local eventPrefix = exports['realisticVehicleSystem']:GetEventPrefix(GetCurrentResourceName())

Read More Here:

CLIENT-SIDED

When called, returns the event code for the specified server event within TCVS. Requires the resource calling it and the server event name. Look at the following example:

local security = GetEventCode(GetCurrentResourceName(), GetEventPrefix(GetCurrentResourceName()) .. ":server:payImpound")
TriggerServerEvent(Security.EventPrefix .. ":server:payImpound", security, data, localisedImpoundID, location)

Read more here:


Extras Exports

CLIENT-SIDED

When called, returns at minimum 1 value, and a maximum of 3 values.

  1. A boolean value (true/false) if the player is inside any polyzone.

  2. PolyZone type ("garage-public" - "garage-private-outside" - "garage-private-inside" - "impound-retrieve" - "impound-unlock" - "insurance")

  3. ID of the polyzone, differentiates depending on what is the PolyZone type.

Example:

local isPlayerInsideGaragePoly, polyType, garageID = exports['realisticVehicleSystem']:IsPlayerInsidePoly()

if(isPlayerInsideGaragePoly and polyType == "garage-public")then
    exports['realisticVehicleSystem']:StoreVehicleInGarage(garageID, PLATE)
end

SHARED-SIDED

When called, requires a plate, and returns an array of the vehicle specified vehicle. For better understanding rather than me explaining with words here's the code.

Example:

local vehState = exports['realisticVehicleSystem']:GetLocation(plate)

if(vehState ~= nil)then
    if(vehState.state == "exploded")then
        print("vehicle has been exploded, last known location: " .. json.encode(vehState.position))
    elseif(vehState.state == "outside")then
        print("vehicle is currently outside, location: " .. json.encode(vehState.position))
    end
end
🚘
⬅️
👨‍🔧Mechanic Integration
👨‍🔧Mechanic Integration
🛡️Security Integration
🛡️Security Integration