Configuration
1. Configure cl_config.lua
cl_config.luaIn this section, you will configure the client-side configuration file cl_config.lua. Follow the instructions below to set it up according to your framework (ESX or QBcore).
Config = {}
Config.Header = {
title = "RESMONSTUDIO", -- The title displayed in the header
name = "Bus driver" -- The name of the system in the header
}
Config.Options = {
Language = 'en', -- Default language for the system (can be changed to other language codes like 'de', 'fr', etc.)
Coords = vector3(452.11, -622.05, 28.56), -- Coordinates for the starting point of the job (where the player will start)
UseOldEsx = false, -- If true, uses old ESX exports; false uses the new ESX exports
MinPayout = 250, -- Minimum payout per job completed (this is the lowest amount a player can earn for completing a job)
MaxPayout = 500, -- Maximum payout per job completed (this is the highest amount a player can earn for completing a job)
SharedObject = {
["client"] = "esx:getSharedObject", -- Client-side shared object retrieval (used to get ESX functions on the client-side)
["server"] = "esx:getSharedObject", -- Server-side shared object retrieval (used to get ESX functions on the server-side)
},
AllowJob = {
UseJobRestrictions = false, -- If true, limits job usage to specific jobs defined in Allowedjobs
Allowedjobs = { -- List of allowed jobs that can access this particular job
busdriver = true, -- Allows the 'busdriver' job to access this job (set to true to allow access)
-- Here you can add more jobs
}
}
}
Config.Blip = {
enabled = true, -- Enable or disable the blip on the map
id = 85, -- Blip ID for the sprite used on the map
scale = 0.9, -- Scale of the blip's size on the map
color = 3, -- Color ID for the blip (based on game-defined colors)
Name = "Busdriver",-- Display name for the blip on the map
}
Config.Marker = {
Type = 21, -- Type of marker (defined by the game)
Size = vector3(1.0, 1.0, 1.0), -- Size of the marker in 3D space (x, y, z)
Color = { r = 255, g = 0, b = 0, a = 144 }, -- RGBA values for the marker's color
BobUpAndDown = false, -- Should the marker bob up and down?
FaceCamera = true, -- Should the marker always face the camera?
Rotate = false, -- Should the marker rotate?
TextureDict = nil, -- Texture dictionary for custom textures (nil for default)
TextureName = nil, -- Name of the texture to use (nil for default)
DrawOnEntities = false -- Should the marker be drawn on entities?
}
Config.BusDriver = {
Locations = {
{name = 'first', blipName = 'Bus Station'},
{name = 'second', blipName = 'Bus Station'},
},
Peds = {
{ped = 'a_m_m_bevhills_01'},
},
StartRoute = {
name = "Start Route",
Pos = {x = 471.39, y = -611.19, z = 28.5, h = 175.19},
},
Inspection = {
name = "Bus Service",
Pos = {x = 466.03, y = -582.8, z = 28.48},
PosCar = {x = 455.5, y = -563.45, z = 27.55, h = 356.23},
PosPed = {x = 456.34, y = -550.24, z = 28.5, h = 160.01},
FirstWheel = {x = 453.94, y = -558.86, z = 28.5, h = 256.45},
SecondWheel = {x = 453.45, y = -566.93, z = 28.5, h = 256.46},
},
Deposit = {
name = "Deposit Car",
Pos = {x = 471.17, y = -583.13, z = 28.5},
Size = {x = 2.0, y = 2.0, z = 2.0},
Color = {r = 78, g = 245, b = 175},
Type = 25,
},
Garages = {
{
x = 460.5, y = -618.38, z = 28.48,
name = "Garage 1",
marker = {
type = 21,
scale = {width = 0.7, height = 0.7, depth = 0.7},
color = {r = 255, g = 0, b = 46, a = 100},
distance = 8.0,
}
},
{
x = 460.1, y = -625.43, z = 28.49,
name = "Garage 2",
marker = {
type = 21,
scale = {width = 0.8, height = 0.8, depth = 0.8},
color = {r = 255, g = 0, b = 46, a = 100},
distance = 10.0,
}
},
{
x = 459.39, y = -632.38, z = 28.48,
name = "Garage 3",
marker = {
type = 21,
scale = {width = 0.7, height = 0.7, depth = 0.7},
color = {r = 255, g = 0, b = 46, a = 100},
distance = 6.0,
}
},
},
First = {
[1] = {x = 308.66, y = -760.22, z = 29.21, h = 161.35, done = false, Peds = {
['Peds'] = {
[1] = {x = 304.72, y = -763.51, z = 28.31, h = 233.04, ped},
[2] = {x = 302.55, y = -760.02, z = 28.31, h = 269.05, ped},
[3] = {x = 300.55, y = -760.02, z = 28.31, h = 269.05, ped},
}},
dx = 306.84, dy = -759.06, dz = 29.31, dh = 74.81
},
[2] = {x = 121.6, y = -786.51, z = 31.25, h = 70.55, done = false, Peds = {
['Peds'] = {
[1] = {x = 119.11, y = -780.46, z = 30.38, h = 161.69, ped},
[2] = {x = 117.11, y = -780.46, z = 30.38, h = 161.69, ped},
[3] = {x = 117.11, y = -779.46, z = 30.38, h = 161.69, ped},
}},
dx = 122.76, dy = -785.04, dz = 31.35, dh = 343.93
},
[3] = {x = -246.03, y = -716.73, z = 33.38, h = 159.68, done = false, Peds = {
['Peds'] = {
[1] = {x = -252.14, y = -718.3, z = 32.41, h = 266.15, ped},
[2] = {x = -250.14, y = -718.3, z = 32.41, h = 266.15, ped},
[3] = {x = -250.14, y = -717.3, z = 32.41, h = 266.15, ped},
}},
dx = -247.7, dy = -715.49, dz = 33.38, dh = 63.54
},
[4] = {x = -254.66, y = -881.88, z = 30.72, h = 252.48, done = false, Peds = {
['Peds'] = {
[1] = {x = -255.92, y = -886.2, z = 29.81, h = 340.96, ped},
[2] = {x = -253.92, y = -886.2, z = 29.81, h = 340.96, ped},
[3] = {x = -254.92, y = -885.2, z = 29.81, h = 340.96, ped},
}},
dx = -255.66, dy = -883.49, dz = 30.83, dh = 160.87
},
[5] = {x = 69.93, y = -999.71, z = 29.25, h = 250.82, done = false, Peds = {
['Peds'] = {
[1] = {x = 68.13, y = -1004.94, z = 28.36, h = 336.33, ped},
[2] = {x = 67.13, y = -1004.94, z = 28.36, h = 336.33, ped},
[3] = {x = 67.13, y = -1003.94, z = 28.36, h = 336.33, ped},
}},
dx = 68.74, dy = -1001.51, dz = 29.36, dh = 160.48
},
[6] = {x = 281.21, y = -911.78, z = 27.87, h = 340.51, done = false, Peds = {
['Peds'] = {
[1] = {x = 286.26, y = -914.05, z = 28.11, h = 74.24, ped},
[2] = {x = 285.26, y = -914.05, z = 28.11, h = 74.24, ped},
[3] = {x = 285.26, y = -913.05, z = 28.11, h = 74.24, ped},
}},
dx = 283.37, dy = -913.07, dz = 29.0, dh = 250.12
},
[7] = {x = 410.8, y = -782.77, z = 29.17, h = 0.46, done = false, Peds = {
['Peds'] = {
[1] = {x = 415.94, y = -781.66, z = 29.35, h = 95.03, ped},
[2] = {x = 414.94, y = -781.66, z = 29.35, h = 95.03, ped},
[3] = {x = 414.94, y = -780.66, z = 29.35, h = 95.03, ped},
}},
dx = 413.07, dy = -782.86, dz = 29.3, dh = 278.3
},
},
Second = {
[1] = {x = 401.43, y = -720.8, z = 29.18, h = 180.4, done = false, Peds = {
['Peds'] = {
[1] = {x = 396.83, y = -720.66, z = 29.29, h = 276.15, ped},
[2] = {x = 395.83, y = -720.66, z = 29.29, h = 276.15, ped},
[3] = {x = 395.83, y = -721.66, z = 29.29, h = 276.15, ped},
}},
dx = 399.56, dy = -720.37, dz = 29.29, dh = 88.39
},
[2] = {x = 395.01, y = -991.01, z = 29.27, h = 179.98, done = false, Peds = {
['Peds'] = {
[1] = {x = 389.87, y = -990.57, z = 29.42, h = 270.29, ped},
[2] = {x = 388.87, y = -990.57, z = 29.42, h = 270.29, ped},
[3] = {x = 388.87, y = -991.57, z = 29.42, h = 270.29, ped},
}},
dx = 392.8, dy = -990.43, dz = 29.42, dh = 91.67
},
[3] = {x = 793.23, y = -948.47, z = 25.7, h = 4.81, done = false, Peds = {
['Peds'] = {
[1] = {x = 798.37, y = -948.5, z = 25.71, h = 94.79, ped},
[2] = {x = 797.37, y = -948.5, z = 25.71, h = 94.79, ped},
[3] = {x = 797.37, y = -949.5, z = 25.71, h = 94.79, ped},
}},
dx = 795.33, dy = -948.97, dz = 25.79, dh = 279.26
},
[4] = {x = 786.06, y = -781.43, z = 26.3, h = 2.08, done = false, Peds = {
['Peds'] = {
[1] = {x = 791.41, y = -781.86, z = 26.4, h = 87.71, ped},
[2] = {x = 790.41, y = -781.86, z = 26.4, h = 87.71, ped},
[3] = {x = 790.41, y = -782.86, z = 26.4, h = 87.71, ped},
}},
dx = 787.63, dy = -780.98, dz = 26.42, dh = 277.52
},
[5] = {x = 451.43, y = -290.24, z = 48.63, h = 68.89, done = false, Peds = {
['Peds'] = {
[1] = {x = 454.14, y = -285.42, z = 48.83, h = 157.34, ped},
[2] = {x = 453.14, y = -285.42, z = 48.83, h = 157.34, ped},
[3] = {x = 453.14, y = -284.42, z = 48.83, h = 157.34, ped},
}},
dx = 452.85, dy = -288.46, dz = 48.56, dh = 336.3
},
[6] = {x = 249.27, y = -579.04, z = 43.16, h = 156.72, done = false, Peds = {
['Peds'] = {
[1] = {x = 244.9, y = -576.57, z = 43.32, h = 245.87, ped},
[2] = {x = 243.9, y = -576.57, z = 43.32, h = 245.87, ped},
[3] = {x = 243.9, y = -575.57, z = 43.32, h = 245.87, ped},
}},
dx = 247.42, dy = -577.59, dz = 43.32, dh = 67.28
},
[7] = {x = 222.5, y = -853.43, z = 30.05, h = 250.92, done = false, Peds = {
['Peds'] = {
[1] = {x = 220.62, y = -858.33, z = 30.21, h = 345.12, ped},
[2] = {x = 219.62, y = -858.33, z = 30.21, h = 345.12, ped},
[3] = {x = 219.62, y = -857.33, z = 30.21, h = 345.12, ped},
}},
dx = 221.39, dy = -855.08, dz = 30.21, dh = 166.6
},
[8] = {x = 432.06, y = -681.66, z = 29.03, h = 270.96, done = false, Peds = {
['Peds'] = {
[1] = {x = 431.66, y = -687.18, z = 29.18, h = 2.75, ped},
[2] = {x = 430.66, y = -687.18, z = 29.18, h = 2.75, ped},
[3] = {x = 430.66, y = -686.18, z = 29.18, h = 2.75, ped},
}},
dx = 431.47, dy = -683.72, dz = 29.19, dh = 182.48
},
}
}
Config.Clothes = {
male = {
['tshirt_1'] = 10, ['tshirt_2'] = 4,
['torso_1'] = 3, ['torso_2'] = 2,
['decals_1'] = 0, ['decals_2'] = 0,
['arms'] = 0,
['pants_1'] = 28, ['pants_2'] = 3,
['shoes_1'] = 51, ['shoes_2'] = 0,
['chain_1'] = 0, ['chain_2'] = 0,
['helmet_1'] = -1, ['helmet_2'] = 0,
['ears_1'] = -1, ['ears_2'] = 0,
['bproof_1'] = 0, ['bproof_2'] = 0
},
female = {
['tshirt_1'] = 128, ['tshirt_2'] = 0,
['torso_1'] = 169, ['torso_2'] = 0,
['decals_1'] = 0, ['decals_2'] = 0,
['arms'] = 46,
['pants_1'] = 27, ['pants_2'] = 0,
['shoes_1'] = 49, ['shoes_2'] = 0,
['chain_1'] = -1, ['chain_2'] = 0,
['helmet_1'] = -1, ['helmet_2'] = 0,
['bproof_1'] = 0, ['bproof_2'] = 0
}
}
Config.Progressbar = {
Enabled = false,
Progress = 5000,
func = function(message)
-- exports["rs_hud"]:Progressbar(true, message, Config.Progressbar.Progress)
end
}
Notify = function(msg)
TriggerEvent('esx:showNotification', msg)
-- TriggerEvent('rs_notify', 'Busdriver', msg , 'info', 5000)
end
ShowHelpNotify = function(msg, E)
ESX.ShowHelpNotification(msg, E)
-- exports["rs_hud"]:HelpNotify(msg, E)
end
2. Configure sv_config.lua
sv_config.luaIn this section, you will configure the server-side configuration file sv_config.lua. Follow the instructions below to set it up according to your framework (ESX or QBcore)
3. Select Languages in sh_languages.lua
sh_languages.luaIn the sh_languages.lua file, you can manage all available language options. To set your preferred language and its corresponding translations, navigate to cl_config.lua and specify your desired locale. This allows you to customize the different languages.
Last updated