Other

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

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,
    }

Last updated