OTHERPLANET DOCS
  • 🪐About US
  • 💻Scripts
    • 🅿️OP Garages V2
      • Installation
      • Configuration
      • Customization
      • Housing Integration
      • Garage Admin Usage
      • Admin Commands
      • Plate Changer
      • Sub Owners
      • Currency Change
    • 🔫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
  • addTempPrivateGarage (SERVER SIDE EXPORT)
  • Example Usage:
  1. Scripts
  2. OP Garages V2

Housing Integration

Read this article and properly integrate our script with your housing system. Don't know how to do it? Contact with our Support Team via Discord Server. (https://discord.gg/otherplanet)

addTempPrivateGarage (SERVER SIDE EXPORT)


exports['op-garages']:addTempPrivateGarage(Label, Type, Coords, Radius, PrivatePlayersList)
  • Label: string

  • Type: car | air | sea

  • Coords: table

    • CenterOfZone: vec4

    • AccessPoint: vec4 (Only whe Type: sea | air)

  • Radius: number

  • PrivatePlayersList: object

    • id: string (Player CitizenID or Char)

    • name: string(Player Name and Lastname, you can leave it "")

Example Usage:

local Coords = {
    CenterOfZone = vec4(-1796.2642, 398.0186, 110.9659, 161.2089),
    AccessPoint = vec4(0.0, 0.0, 0.0, 0.0) -- Leave 0.0 if it's 'car' garage.
}
local PrivatePlayersList = {
    {
        id = "char1:7e0ec7b80d186fd8c29f6631e4377e75812fe8fd",
        name = ""
    }
}
exports['op-garages']:addTempPrivateGarage("Bagieta Garage", "car", Coords, 15, PrivatePlayersList)

PreviousCustomizationNextGarage Admin Usage

Last updated 3 days ago

💻
🅿️