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
  • Attributtes to make normal garage look like above:
  • Example Car Garage using this attributes:
  • Client Trigger to opengarage in selected coords (usable for housing).
  1. Scripts
  2. OP Garages V1 (OLD)

Other

How to make Car Garage be accesible like Boat garage or Plane?

PreviousExports

Last updated 5 months ago

Attributtes to make normal garage look like above:

  • OneSpawn: true

  • SpawnCoords: vec4

  • AccessCoords: vec4

  • AlternativeSpawnCoords: table

Example Car Garage using this attributes:

['ammu_01'] = {
        OneSpawn = true,
        SpawnCoords = vec4(-1336.1306, -395.4825, 35.5545, 298.1131),
        AccessCoords = vec4(-1328.9280, -401.4549, 35.5988, 21.9894),
        Type = "Vehicle",
        CenterOfZone = vec3(-1332.7397, -393.8478, 36.5536),
        AlternativeSpawnCoords = {
          vec4(-1345.2596, -399.7505, 36.0989, 294.8187),
          vec4(-1333.4955, -393.4689, 36.1675, 296.8273)
        },
        Zone = function()
            return PolyZone:Create({
                vector2(-1345.0607910156, -409.23037719726),
                vector2(-1350.7904052734, -398.9833984375),
                vector2(-1322.5408935546, -381.3434753418),
                vector2(-1317.9185791016, -389.7082824707),
                vector2(-1319.2091064454, -394.16201782226)
            }, {
                name="ammu_01",
                debugPoly=false,
            })
        end,
    }

Client Trigger to opengarage in selected coords (usable for housing).

TriggerEvent('op-garages:openGarageHere', vec4(), type?)
💻
🅿️