Garages and Job garages

Welcome to garages and job garages

Read each configuration and each value that you place, if one is wrong it could give an error and that is not what we want to happen to you, keep this in mind and use the examples.

Within the configuration we will find Config.Garages and Config.JobGarages, inside we will find many examples, since the asset includes by default more than 40 garages throughout the map.

As for the garages we will find impounds and basic garages, which you will have a basic example here. Within points, we must make a square where we will put the garage inside (you can use Config.Debug to see the area better)

Public garages or impounds

['Pinkie Pie Garage'] = { -- Garage name (blip, sql, etc)
    owner = false, -- If it is public, put false
    available = true, -- If it is public, set true
    isImpound = false, -- If it is an impound, set it to false (Only for impound zone)
    job = false, -- You can give it a job by simply adding 'police' for example
    type = 'vehicle', -- Use: vehicle (car), boat or plane
    shell = {
        shell = 1 -- Shell numbers, you can see them in interiors.lua
    },
    coords = {
        menuCoords = vec3(483.75, -1312.29, 29.21), -- Menu coords
        spawnCoords = vec4(488.68, -1313.91, 29.26, 294.49), -- Spawn vehicle coords
        polyzone = {
            points = {
                vec3(398.86, -1278.41, 25.0), -- Structure of the polyzone (corners forming a box)
                vec3(482.58, -1341.67, 25.0), -- Structure of the polyzone (corners forming a box)
                vec3(514.39, -1331.06, 25.0), -- Structure of the polyzone (corners forming a box)
                vec3(491.67, -1268.94, 25.0) -- Structure of the polyzone (corners forming a box)
            },
            thickness = 25.0
        }
    },
    vehicleCamera = { -- Camera and position configuration (you can remove this)
        vehicleCoords = vec4(492.857147, -1317.085693, 28.824951, 260.787415),
        camera = {
            coords = vec3(494.162628, -1320.975830, 29.195557),
            rotation = vec3(-2.0, 2.0, 28.0),
            ped = vec4(494.729675, -1315.925293, 29.246094, 170.259842)
        }
    },
    cinematicCams = { -- Cinematic camera afk, set it near the vehicle or have fun
        vec3(495.230774, -1318.892334, 29.246094),
        vec3(492.065948, -1318.852783, 29.229248)
    }
}

Job garages

In the case of the work garages, there is also a small snippet below, but these are much simpler to execute:

{
    job = 'police',
    name = 'police-1',
    grade = 1, -- Boss grade
    price = 100, -- Put a price or 0
    coords = {
        menuCoords = vec3(457.9, -1017.28, 28.28),
        spawnCoords = vec4(446.48, -1019.35, 27.55, 91.14),
    },
    vehicles = {
        `police`,
        `police2`,
    },
    liveries = {
        [`police`] = 1
    },
    extras = {
        [`police`] = {
            ['1'] = true,
            ['2'] = true,
            ['3'] = true,
            ['4'] = true,
            ['5'] = true,
            ['6'] = true,
            ['7'] = true,
            ['8'] = true,
            ['9'] = true,
            ['10'] = true,
            ['11'] = true,
            ['12'] = true,
            ['13'] = true,
        }
    },
    vehicleCamera = {
        vehicleCoords = vec4(436.694519, -1020.843933, 28.319458, 320.314972),
        camera = {
            coords = vec3(441.257141, -1019.947266, 28.656372),
            rotation = vec3(-3.0, 2.0, 106.0),
            ped = vec4(438.224182, -1021.200012, 28.673218, 291.795288)
        }
    },
    cinematicCams = {
        vec3(440.729675, -1019.327454, 28.706909),
        vec3(438.395599, -1022.175842, 28.622681)
    }
},

Job garage with stock

For the garage system by boss, society style, it is very simple. Follow the steps to understand the operation and procedure to put a vehicle stock.

To place a stock of vehicles, we must individually select in Config.JobGarages the owner's grade with the value grade, as mentioned in the step above or in the default configuration.

In that case, the boss can buy vehicles and go to the specific job garage to enter the addJobVehicle command to add this vehicle as stock in that job garage.

If the boss wants to remove said vehicle from work, he can use the deleteJobVehicle command and will be able to access a menu to remove a certain vehicle from this garage.

Vehicles in stock are limited, if you have more than one worker, you will need to add more vehicles so that all workers have one vehicle.

The vehicle can only be stored in the specific job garage, not in another garage even if it shares the same job.

The vehicle cannot go impound, since when doing mdv or mdvall it will return to the specified work garage.

NameDescription

/addJobVehicle

Add the car you are in to a job garage.

/deleteJobVehicle

Remove the work vehicle from a certain garage.

Last updated