For the complete documentation index, see llms.txt. This page is also available as Markdown.

Server-side

Server side exports for OP GARAGES V3

getAllGarages


Get List of all Available garages.

Example Usage:

exports['op-garages']:getAllGarages()

Example Returned Data:

"35": {
    "onespawn": {
        "x": -35.35721588134765,
        "y": -1456.6011962890626,
        "z": 30.27030754089355,
        "w": 109.94937133789063
    },
    "Type": "car",
    "Index": 35,
    "AccessPoint": {
        "x": 0.0,
        "y": 0.0,
        "z": 0.0,
        "w": 0.0
    },
    "zPoints": {
        "minZ": 0,
        "maxZ": 0
    },
    "PrivatePlayersList": [],
    "Gang": {
        "name": "ballas",
        "grade": 0,
        "type": "owned"
    },
    "Job": {
        "name": "police",
        "grade": 0,
        "type": "owned"
    },
    "Radius": "20",
    "IsPrivate": false,
    "blipDisabled": false,
    "Label": "Test Garage",
    "CenterOfZone": {
        "x": -35.35721588134765,
        "y": -1456.6011962890626,
        "z": 30.27030754089355,
        "w": 109.94937133789063
    }
}

getGarageByIndex


Get garage data by index.

Example Usage:

Example Returned Data:

getAllImpounds


Get List of all Available Impounds.

Example Usage:

Example Returned Data:

getImpoundByIndex


Get Impound data by index.

Example Usage:

Example Returned Data:

getVehiclesLabels


Get Vehicles Custom Labels added through Garage Admin.

Example Usage:

Example Returned Data:

getVehicleLabelByModel


Get Vehicle Custom Label added through Garage Admin by Model.

Example Usage:

Example Returned Data:

setVehicleOutside


Marks a vehicle as taken out of the garage in the database (stored / state = outside) and saves its network ID.

  • plate: string

  • netId: number

  • returns: boolean

Example Usage:

setVehicleInside


Marks a vehicle as stored inside the garage in the database (stored / state = inside) and clears its network ID / impound fields.

  • plate: string

  • returns: boolean

Example Usage:

Last updated