β¬ οΈExports
Explore our selection of exports that enhance your resource functionality.
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:
π¨βπ§Mechanic IntegrationCLIENT-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:
π¨βπ§Mechanic IntegrationCLIENT-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:
CLIENT-SIDED
When called, opens the garage UI form. Requires garage ID.
Example:
Impound Related Exports
SHARED-SIDED
When called, returns a boolean value (true/false) if the vehicle is impounded.
Example:
CLIENT-SIDED
When called, opens the impound UI form. Requires impound ID.
Example:
CLIENT-SIDED
When called, opens the impound lock UI form. Requires impound lock ID.
Example:
Insurance Related Exports
CLIENT-SIDED
When called, opens the insurance UI form. Requires insurance ID.
Example:
Security Integration Exports
CLIENT-SIDED
When called, returns the Security.EventPrefix variable. Requires the resource calling it.
Read More Here:
π‘οΈSecurity IntegrationCLIENT-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:
Read more here:
π‘οΈSecurity IntegrationExtras Exports
CLIENT-SIDED
When called, returns at minimum 1 value, and a maximum of 3 values.
A boolean value (true/false) if the player is inside any polyzone.
PolyZone type ("garage-public" - "garage-private-outside" - "garage-private-inside" - "impound-retrieve" - "impound-unlock" - "insurance")
ID of the polyzone, differentiates depending on what is the PolyZone type.
Example:
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:
Last updated
Was this helpful?