OTHERPLANET DOCS
  • 🪐About US
  • 💻Scripts
    • 🔫OP Crime Organisations
      • Installation
      • Config Files
      • Customization
      • Tablet as Item
      • Global States
      • Exports
        • Server Side
    • 🚘OP Mechanic Job
      • Installation
      • Config File
      • Setup Jobs
      • Setup Dispatch
      • Get Duty
      • Update Tablet Stats
      • Notifications/Progressbar
      • Discord Logs
    • 🗒️OP Requests
      • Installation
      • Config
      • Usage
    • 🌇OP HUD
      • Config File
      • Instalation
      • Progress Bar Usage
      • Notify Usage
      • Alcohol Status & Stamina
    • 🏎️OP Vehicle Theft
      • Installation
      • OX Inventory
      • Translate Sounds
      • Config
      • Customization
    • 🅿️OP Garages V1 (OLD)
      • Installation
      • Config
        • Main
        • Garages Locations
        • Vehicles and Brands
      • Customization
      • Vehicle Types
      • Jobs
      • Exports
      • Other
Powered by GitBook
On this page
  • CLIENT SIDE:
  • GetVehicleLabel(model, cb)
  • SERVER SIDE:
  • getAllVehicles(source, typeOfVehicles, cb)
  • getVehicleStateByPlate(plate, cb)
  • getVehicleByPlate(plate, cb)
  1. Scripts
  2. OP Garages V1 (OLD)

Exports

Exports list

CLIENT SIDE:

GetVehicleLabel(model, cb)

exports['op-garages']:GetVehicleLabel(model, function(label)
    return label
end)    

SERVER SIDE:

getAllVehicles(source, typeOfVehicles, cb)

exports['op-garages']:getAllVehicles(source, "car", function(data)
    return data
    
    -- THIS RETURN DATA FROM MYSQL, FOR ESX FROM owned_vehicles for QBCORE from player_vehicles. 
    -- In esx and in qbcore script use state value to check if vehicle is out or in.
    -- state 1 == out of garage
    -- state 0 == in garage
end)   

getVehicleStateByPlate(plate, cb)

exports['op-garages']:getVehicleStateByPlate(plate, function(data)
    return data
    
    -- THIS RETURN VALUE 0 OR 1
    -- In esx and in qbcore script use state value to check if vehicle is out or in.
    -- 1 == out of garage
    -- 0 == in garage
end)   

getVehicleByPlate(plate, cb)

exports['op-garages']:getVehicleByPlate(plate, function(data)
    return data
    
    -- THIS RETURN DATA FROM MYSQL, FOR ESX FROM owned_vehicles for QBCORE from player_vehicles. 
    -- In esx and in qbcore script use state value to check if vehicle is out or in.
    -- state 1 == out of garage
    -- state 0 == in garage
end)   
PreviousJobsNextOther

Last updated 2 months ago

💻
🅿️