⚙️Configuration
The Script includes also a big language/locales configuration where you can change any text of our script!
Config = Config or {}
Config.Debug = true -- Debug Mode (true = console logs)
Config.Framework = "esx" -- Supported: "esx", "qbcore", "qbox"
Config.DistanceUpdateInterval = 500 -- Update distance every 500ms (if number is lower, the performance will be worse) => for the NUI if player is driving
Config.SyncDoors = true -- Sync doors with other players (players can enter metros then!)
Config.BrakeKey = 33 -- https://gist.github.com/FlokiTV/8372476722453cfb0ceabe9334204070
Config.Notify = {
Server = function(source, message)
TriggerClientEvent("esx:showNotification", source, message)
end,
Client = function(message)
TriggerEvent("esx:showNotification", message)
end
}
Config.Jobs = {
Train = {
menu = {
coords = vector3(2618.6838, 1693.0745, 27.5986),
heading = 98.4380,
ped = "s_m_m_cntrybar_01",
blip = {
show = true,
sprite = 795,
color = 5,
scale = 0.8,
name = "Trains",
shortRange = true,
},
},
-- Spawn Settings for the Train
spawn = {
coords = vector3(2611.1475, 1692.4751, 26.8887),
heading = 357.5324,
},
settings = {
maxSpeed = 100.0, -- The maximum speed, the train can drive
speedStep = 0.04, -- Acceleration steps
standInTime = 15 * 1000, -- Deport time at checkpoints (ms)
markerColor = {r = 255, g = 255, b = 255, a = 90},
trainVariation = "random", -- This will pick a random train everytime, you can hardcode also one variation if you enter a number between 0 and 26
},
-- add enough levels to prevent errors
level = {
list = {
[1] = {
level = 1,
neededXp = 10,
xpPerStation = 5,
rewardPerStation = 500,
},
[2] = {
level = 2,
neededXp = 20,
xpPerStation = 5,
rewardPerStation = 500,
}
}
},
-- the checkpoints need to be in the right order
checkpoints = {
[1] = {
name = "San Andreas",
coords = vector4(2890.363, 4854.183, 63.121, 34.004),
},
[2] = {
name = "Paleto Bay",
coords = vector4(-139.8481, 6142.5410, 31.5772, 135.0),
},
[3] = {
name = "Davis Quartz",
coords = vector4(2607.4248, 2934.0396, 40.0196, 144.0),
},
[4] = {
name = "Mirror Park",
coords = vector4(664.5507, -898.7147, 22.2379, 0.0),
},
[5] = {
name = "Straßenübergang",
coords = vector4(556.1844, -1496.6737, 21.4630, 181.6500),
},
[6] = {
name = "Hafenbrücke Tunnel",
coords = vector4(692.0786, -2566.0730, 12.0574, 327.6513),
},
[7] = {
name = "Palomino Hochland",
coords = vector4(2467.749, -289.946, 93.519, 322.009),
},
[8] = {
name = "Endstation",
coords = vector4(2611.1006, 1698.0022, 26.7970, 0.0),
},
},
},
Metro = {
menu = {
coords = vector3(-548.8455, -1300.8937, 26.9015),
heading = 252.3160,
ped = "s_m_m_cntrybar_01",
blip = {
show = true,
sprite = 795,
color = 5,
scale = 0.8,
name = "Metro",
shortRange = true,
},
},
-- Spawn Settings for the Train
spawn = {
coords = vector3(-529.5872, -1270.8245, 25.9033),
heading = 155.7672,
},
settings = {
maxSpeed = 50.0, -- The maximum speed, the metro can drive
speedStep = 0.04, -- Acceleration steps
standInTime = 15 * 1000, -- Deport time at checkpoints (ms)
markerColor = {r = 255, g = 255, b = 255, a = 90},
trainVariation = 31, -- please check whats the last variation on your server and enter the number here
},
-- add enough levels to prevent errors
level = {
list = {
[1] = {
level = 1,
neededXp = 10,
xpPerStation = 5,
rewardPerStation = 500,
},
[2] = {
level = 2,
neededXp = 20,
xpPerStation = 5,
rewardPerStation = 500,
}
}
},
-- the checkpoints need to be in the right order
checkpoints = {
[1] = {
name = "LSIA Parking",
coords = vector4(-881.8899, -2337.1555, -13.2463, 160.2263),
},
[2] = {
name = "LSIA Terminal",
coords = vector4(-1088.9470, -2733.9106, -8.9238, 140.0172),
},
[3] = {
name = "LSIA Parking 2",
coords = vector4(-885.5167, -2303.0286, -13.2459, 339.8156),
},
[4] = {
name = "Puerto del Sol",
coords = vector4(-540.9240, -1271.9365, 25.3057, 335.7420),
},
[5] = {
name = "Strawberry",
coords = vector4(279.6884, -1198.6282, 37.4481, 269.5926),
},
[6] = {
name = "Burton",
coords = vector4(-302.1993, -308.0540, 8.5497, 359.9504),
},
[7] = {
name = "Portola Drive",
coords = vector4(-830.4789, -155.1125, 18.4366, 120.1724),
},
[8] = {
name = "Del Perro",
coords = vector4(-1335.7888, -477.1237, 13.5317, 210.1058),
},
[9] = {
name = "Little Seoul",
coords = vector4(-482.9720, -665.5659, 10.2955, 269.9554),
},
[10] = {
name = "Pillbox South",
coords = vector4(-213.3900, -1046.9573, 28.7221, 160.1147),
},
[11] = {
name = "Davis",
coords = vector4(129.0706, -1731.7942, 28.5297, 229.9107),
},
[12] = {
name = "Pillbox South 2",
coords = vector4(-213.9492, -1021.1587, 28.7246, 340.0141),
},
[13] = {
name = "Little Seoul 2",
coords = vector4(-518.7900, -680.6136, 10.2959, 89.8682),
},
[14] = {
name = "Del Perro 2",
coords = vector4(-1369.9302, -448.1055, 13.5313, 30.0250),
},
[15] = {
name = "Portola Drive 2",
coords = vector4(-802.4569, -121.5743, 18.4364, 299.9287),
},
[16] = {
name = "Burton 2",
coords = vector4(-287.1542, -348.1176, 8.5497, 179.9062),
},
[17] = {
name = "Strawberry 2",
coords = vector4(248.8914, -1209.9196, 37.4467, 90.2679),
},
[18] = {
name = "Puerto del Sol 2",
coords = vector4(-540.7623, -1294.1838, 25.3023, 155.7672),
},
},
},
}Last updated