Installation
Follow these steps to use kc_garage
🛠️ Step 1: Put in your resouces file
Download resouces
kc_garagev2
Extract file and put
kc_garagev2
in your resource files
🛠️ Step 2: Insert SQL Query
Enter the database query below into your database server.
Premium Garage SQL
/* [[[ PREMIUM GARAGE ]]] */
CREATE TABLE IF NOT EXISTS `premium_garage` (
`identifier` varchar(60) NOT NULL,
`class` varchar(60) NOT NULL,
`date_regist` timestamp NULL DEFAULT NULL,
`expired` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
Vehicle SQL
🛠️ Step 3: Configuration
You can edit the configuration in shared/config.lua
🛠️ Step 4: Setup Garages
You can make a garage according to the place you want. Or you can use the base of this script.
Public Garages
Place the garage according to your wishes by following the format below.
['Legion'] = { -- Garage key name
Label = 'Legion', -- Garage label name
Type = 'car', -- Vehicle type
MaxVehicle = 5, -- Max vehicle parking in this garage
Blip = true, -- Show or hide blips
Players = false, -- Only selected players can access || param: boolean or table
Jobs = false, -- Only selected jobs can access || param: boolean or table
Coords = vector4(-282.7397, -888.6456, 31.0806, 73.9637), -- Garage coords
SpawnPoint = {-- Spawn vehicle points
vector4(-285.6491, -888.0939, 31.0806, 166.4453), -- Spawn point 1 || param: vector4
vector4(-289.2811, -887.3295, 31.0806, 169.8648), -- Spawn point 2 || param: vector4
vector4(-292.9691, -886.3055, 31.0806, 168.2578), -- Spawn point 3 || param: vector4
vector4(-296.4071, -885.5869, 31.0806, 167.0156), -- Spawn point 4 || param: vector4
vector4(-300.0922, -884.8438, 31.0806, 167.7881), -- Spawn point 5 || param: vector4
vector4(-303.7151, -883.9635, 31.0806, 165.1761), -- Spawn point 6 || param: vector4
},
DeletePoint = { -- Delete vehicle if inside zone
Pos = vector3(-293.78, -886.32, 30.18), -- Coords delete point zone
Size = vector3(20, 6, 5), -- Size box zone
Rotation = 348 -- Rotation zone
}
},
Private Garages
You can use a private garage for players who own a house or other.
['HachiGarage'] = {
Label = 'Hachi Garage',
Type = 'car',
Blip = false,
Players = {
'steam:xxxxxxxxxxxx',
},
Jobs = false,
Coords = vector4(-100.3831, 819.2451, 235.7249, 7.1012),
SpawnPoint = {
vector4(-104.9789, 824.1717, 235.7252, 9.1065),
},
DeletePoint = {
Pos = vector3(-104.98, 824.17, 235.73),
Size = vector3(10, 10, 5),
Rotation = 15
}
},
Jobs Garages
Job Garages you can use for players who are on duty.
['PoliceOffice'] = {
Label = 'Police Office',
Type = 'aircraft',
Blip = false,
Players = false,
Jobs = {
'police',
},
Coords = vector4(-675.1924, 327.1154, 140.1467, 88.0828),
SpawnPoint = {
vector4(-686.8148, 326.8840, 140.1467, 179.3648),
},
DeletePoint = {
Pos = vector3(-687.07, 323.44, 140.15),
Size = vector3(15, 15, 5),
Rotation = 0
}
},
Parameter
Label:
string
Garage Label.
Type:
string
Vehicle type.
MaxVehicle:
number
Max vehicle parking in this garage,
Blips:
boolean
Show or hide blip garage.
Players:
boolean
ortable
Boolean: you can set
false
if this garage not private.Table: you can enter
identifier
orcitizenid
players.
Jobs:
boolean
ortable
Boolean: you can set
false
if this garage not for jobs.Table: you can enter
jobName
if this garage for jobs.
Coords:
vector4
Coords for garage blips and spawn peds.
SpawnPoint:
table
Spawn vehicles place. Use vector4.
DeletePoint:
table
Pos:
vector3
Coords for delete point.
Size:
vector3
Size for delete point.
Rotation:
number
Rotation for delete point
🛠️ Step 5: Setup Impounds
Public Impound
Public Impound, this is usually used when the player loses their vehicle. They can take out their vehicle here.
['SandyShores'] = { -- Impound key name
Label = 'Impound', -- Impound label name
Type = 'car', -- Vehicle type
Blip = true, -- Show or hide blips
Jobs = false, -- Only selected jobs can access || param: boolean or table
Coords = vector4(252.6120, 2595.9448, 44.8955, 15.9485), -- Impound coords
SpawnPoint = { -- Spawn vehicle points
vector4(258.2920, 2592.3401, 44.6332, 9.6964) -- Spawn point 1 || param: vector4
}
},
['SandyShoresAir'] = {
Label = 'Aircraft Impound',
Type = 'aircraft',
Blip = true,
Jobs = false,
Coords = vector4(1743.8893, 3296.8372, 41.1287, 193.3046),
SpawnPoint = {
vector4(1739.1770, 3281.5996, 41.0936, 11.3545)
}
},
Jobs Impound
Impound jobs are used to retrieve vehicles impounded by impound jobs.
['PoliceImpound'] = {
Label = 'Police Impound',
Type = 'car',
Blip = true,
Jobs = {'police'},
Coords = vector4(409.1168, -1623.0258, 29.2919, 230.4279),
SpawnPoint = {
vector4(416.9999, -1627.8965, 29.0, 137.3000),
vector4(419.6365, -1629.6110, 29.0, 135.3693),
}
},
Parameter
Label:
string
Garage Label.
Type:
string
Vehicle type.
Blips:
boolean
Show or hide blip garage.
Jobs:
boolean
ortable
Boolean: you can set
false
if this garage not for jobs.Table: you can enter
jobName
if this garage for jobs.
Coords:
vector4
Coords for garage blips and spawn peds.
SpawnPoint:
table
Spawn vehicles place. Use vector4.
🛠️ Step 6: Start the resouce
If everything is set up according to your server. You can start this kc_garagev2
Go to
server.cfg
and replaceensure kc_garagev2
Restart your server
Last updated