Job Garages with Predefined Vehicles

['SandyShoresPolice'] = {
    label = "Police Garage",
    type = 'vehicle',
    requiredJob = {
        ['police'] = {0, 1, 2, 3, 4, 5, 6},
        ['sheriff'] = true
    },
    isPaid = false,
    nameBlip = 'job_garage',
    showBlip = false,
    blipCoords = vector3(0.0, 0.0, 0.0),
    garageZone = { -- PolyZone
        vec2(1883.49, 3686.12),
        vec2(1866.77, 3712.9),
        vec2(1848.26, 3704.3),
        vec2(1864.46, 3675.74),
    },
    minZ = 29.0,
    maxZ = 39.0,
    
    allowedModels = {
        [joaat('police')] = true,
        [joaat('police2')] = true,
        [joaat('police3')] = true,
        [joaat('police4')] = true,
        [joaat('police5')] = true,
    },
    availableVehicles = {
        ['police'] = {
            model = 'police'
        },
            
        ['police2'] = {
            model = 'police2',
            gradesAccess = {1, 2, 3, 4}
        },
            
        ['police3'] = {
            model = 'police3',
            gradesAccess = {2, 3, 4}
        },

        ['police4'] = {
            model = 'police4',
            gradesAccess = {3, 4}
        },

        ['police5'] = {
            model = 'police5',
            gradesAccess = {4},
            customProperties = {
                ['modEngine'] = 3,
                ['modTurbo'] = true,
                ['windowTint'] = 2,
            }
        },
    },
    menuPoint = vector3(1866.63, 3688.4, 34.27),
    garageData = {
        pedCoords = vector4(1873.61, 3691.09, 32.53, 238.32),
        vehicleCoords = vector4(1870.77, 3691.41, 32.38, 206.87),
        cameraCoords = vector3(1876.68, 3688.59, 33.9),
        cameraFov = 60.0,
    },
    spawnPoint = vector4(1873.36, 3682.98, 32.49, 119.93),
    returnVehiclePoint = vector4(1870.77, 3691.41, 32.38, 206.87),
},

Last updated