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)

Check this as well:

Script Integrations

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 "")

This export return created garage id.

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 = ""
    }
}
local garageId = exports['op-garages']:addTempPrivateGarage("Bagieta Garage", "car", Coords, 15, PrivatePlayersList)

removeTempPrivateGarage (SERVER SIDE EXPORT)


  • Index: number

Example Usage:

exports['op-garages']:ClientremoveTempPrivateGarage(garageId)

Client Side:

You can also use:

  • ClientaddTempPrivateGarage

  • ClientremoveTempPrivateGarage

Works like server side exports.

Last updated