310 lines
18 KiB
Lua
310 lines
18 KiB
Lua
Config = {
|
|
Framework = "qb", -- "esx" or "oldesx" or "qb"
|
|
Locale = "ro", -- Locale of the script
|
|
DebugStreet = false, -- Debug street name
|
|
Target = "qb", -- "qb" / "ox" / "none"
|
|
|
|
CoreExport = function()
|
|
if Config.Framework == "qb" then
|
|
return exports["qb-core"]:GetCoreObject()
|
|
elseif Config.Framework == "esx" or Config.Framework == "oldesx" then
|
|
return exports["es_extended"]:getSharedObject()
|
|
else
|
|
return -- Your core export
|
|
end
|
|
end,
|
|
|
|
JobRequirement = true,
|
|
Job = "bus",
|
|
|
|
Menu = vector3(468.8964, -577.0377, 29.4997), -- Coords of the menu
|
|
Vehicle = "bus", -- Vehicle model name (https://wiki.gtanet.work/index.php?title=Vehicle_Models)
|
|
|
|
SpamProtectionTime = 2000, -- Time between opening menu (in milliseconds)
|
|
TimeToGetInVehicle = 30, -- Time to get in the vehicle (in seconds)
|
|
CrashFine = 50, -- Fine for crashing
|
|
|
|
NPC = {
|
|
hash = "a_m_y_business_02", -- Hash of the NPC (https://wiki.gtanet.work/index.php?title=Peds)
|
|
coords = vector3(468.8964, -577.0377, 28.4997), -- Coords of the NPC
|
|
heading = 172.1323, -- Heading of the NPC
|
|
|
|
blip = {
|
|
sprite = 513, -- Blip sprite (https://docs.fivem.net/docs/game-references/blips/)
|
|
color = 4, -- Blip color
|
|
scale = 0.6, -- Blip scale
|
|
name = "Sofer de Autobuz", -- Blip name
|
|
}
|
|
},
|
|
|
|
PassengerPeds = { -- Peds that will be spawned as passengers
|
|
"a_f_m_bevhills_01",
|
|
"a_f_m_bevhills_02",
|
|
"a_f_m_business_02",
|
|
"a_f_m_downtown_01",
|
|
"a_f_m_eastsa_01",
|
|
"a_f_m_eastsa_02",
|
|
"a_f_m_ktown_01",
|
|
"a_f_m_ktown_02",
|
|
"a_f_m_prolhost_01",
|
|
"a_f_m_salton_01",
|
|
"a_f_m_skidrow_01",
|
|
"a_f_m_soucentmc_01",
|
|
"a_f_m_soucent_01",
|
|
"a_f_m_soucent_02",
|
|
},
|
|
|
|
ParkingLots = { -- Parking lots where the bus will be spawned
|
|
vector4(439.9370, -581.0314, 28.4998, 263.1297),
|
|
vector4(437.3640, -585.4839, 28.4998, 264.4554),
|
|
vector4(434.4360, -589.4965, 28.4998, 266.5495),
|
|
vector4(474.4873, -586.5387, 28.4996, 352.9474),
|
|
vector4(470.7718, -606.2182, 28.4994, 355.4654),
|
|
},
|
|
|
|
Routes = {
|
|
{
|
|
RouteName = "Aeroport", -- Name of the route
|
|
Salary = 150, -- Salary of the route
|
|
Level = 0, -- Level required to do the route
|
|
TicketPrice = 5, -- Price of the ticket
|
|
Exp = 3, -- Exp to give to the player each stop
|
|
|
|
Stops = {
|
|
{
|
|
Preview = "https://cdn.discordapp.com/attachments/582570734174339101/1169775464148107305/image.png?ex=6556a14c&is=65442c4c&hm=8a0180939fafeb0f6c2c0f2339e0901451a61bda046e80bbed0bb1efaa953f4e&", -- Image of the stop (in the menu)
|
|
StopName = "Little Bighorn Ave", -- Name of the stop
|
|
Level = 0, -- Level required to do the stop
|
|
StopCoords = vector3(460.4128, -618.2562, 28.4998), -- Coords of the stop
|
|
PassengerWaitCoords = vector4(455.2104, -615.7665, 28.4998, 291.3041), -- Coords where the passengers will wait
|
|
MaxPassengers = 6, -- Max passengers to create on stop
|
|
MinPassengers = 2, -- Min passengers to create on stop
|
|
StopBlip = { -- Blip of the stop (https://docs.fivem.net/docs/game-references/blips/)
|
|
Sprite = 1,
|
|
Color = 4,
|
|
Scale = 0.6,
|
|
Text = "Statie: Little Bighorn Ave"
|
|
}
|
|
},
|
|
{
|
|
Preview = "https://cdn.discordapp.com/attachments/582570734174339101/1169775589914312765/image.png?ex=6556a16a&is=65442c6a&hm=f53e79ddfaab8b84f261eda9d756d172dd6c65066087a68174addbfeaa883ddd&", -- Image of the stop (in the menu)
|
|
StopName = "Strawberry Ave", -- Name of the stop
|
|
Level = 0, -- Level required to do the stop
|
|
StopCoords = vector3(308.2967, -768.3861, 29.3087), -- Coords of the stop
|
|
PassengerWaitCoords = vector4(305.4775, -765.5773, 29.1584, 248.1796), -- Coords where the passengers will wait
|
|
MaxPassengers = 4, -- Max passengers to create on stop
|
|
MinPassengers = 2, -- Min passengers to create on stop
|
|
StopBlip = { -- Blip of the stop (https://docs.fivem.net/docs/game-references/blips/)
|
|
Sprite = 1,
|
|
Color = 4,
|
|
Scale = 0.6,
|
|
Text = "Statie: Strawberry Ave"
|
|
}
|
|
},
|
|
{
|
|
Preview = "https://cdn.discordapp.com/attachments/582570734174339101/1170376825181052988/image.png?ex=6558d15b&is=65465c5b&hm=88b1a06d0fad320d8548932b54eb6a429876a697c64f622bf0beeec9cef0db7f&", -- Image of the stop (in the menu)
|
|
StopName = "Macdonald St", -- Name of the stop
|
|
Level = 0, -- Level required to do the stop
|
|
StopCoords = vector3(92.7498, -1449.7028, 29.2555), -- Coords of the stop
|
|
PassengerWaitCoords = vector4(90.2388, -1447.3125, 29.1968, 227.0327), -- Coords where the passengers will wait
|
|
MaxPassengers = 5, -- Max passengers to create on stop
|
|
MinPassengers = 1, -- Min passengers to create on stop
|
|
StopBlip = { -- Blip of the stop (https://docs.fivem.net/docs/game-references/blips/)
|
|
Sprite = 1,
|
|
Color = 4,
|
|
Scale = 0.6,
|
|
Text = "Statie: Macdonald St"
|
|
}
|
|
},
|
|
{
|
|
Preview = "https://cdn.discordapp.com/attachments/582570734174339101/1170376908261838918/image.png?ex=6558d16f&is=65465c6f&hm=4b991744f80d2dedaf7c05371cf3fc670bb666c9c5324e3fe6b64d542559175b&", -- Image of the stop (in the menu)
|
|
StopName = "Davis Ave", -- Name of the stop
|
|
Level = 0, -- Level required to do the stop
|
|
StopCoords = vector3(-107.8732, -1688.2101, 29.2449), -- Coords of the stop
|
|
PassengerWaitCoords = vector4(-109.9528, -1686.5634, 29.3072, 231.1350), -- Coords where the passengers will wait
|
|
MaxPassengers = 5, -- Max passengers to create on stop
|
|
MinPassengers = 1, -- Min passengers to create on stop
|
|
StopBlip = { -- Blip of the stop (https://docs.fivem.net/docs/game-references/blips/)
|
|
Sprite = 1,
|
|
Color = 4,
|
|
Scale = 0.6,
|
|
Text = "Statie: Davis Ave"
|
|
}
|
|
},
|
|
{
|
|
Preview = "https://cdn.discordapp.com/attachments/582570734174339101/1170376982190633032/image.png?ex=6558d181&is=65465c81&hm=3ed0fdda5044e6360ed0d2a3adca2130a1811f7c8c497d6324c280e7bc7117ab&", -- Image of the stop (in the menu)
|
|
StopName = "Airport", -- Name of the stop
|
|
Level = 1, -- Level required to do the stop
|
|
StopCoords = vector3(-1027.6862, -2725.3535, 13.7275), -- Coords of the stop
|
|
PassengerWaitCoords = vector4(-1031.4918, -2728.9023, 13.7566, 327.4242), -- Coords where the passengers will wait
|
|
MaxPassengers = 6, -- Max passengers to create on stop
|
|
MinPassengers = 2, -- Min passengers to create on stop
|
|
StopBlip = { -- Blip of the stop (https://docs.fivem.net/docs/game-references/blips/)
|
|
Sprite = 1,
|
|
Color = 4,
|
|
Scale = 0.6,
|
|
Text = "Statie: Aiport"
|
|
}
|
|
},
|
|
{
|
|
Preview = "https://cdn.discordapp.com/attachments/582570734174339101/1170377057843302500/image.png?ex=6558d193&is=65465c93&hm=5b9dae240586f74675a1c1a661faec6bf4278559c7c0dfe68135a0548bf5ee69&", -- Image of the stop (in the menu)
|
|
StopName = "Carson Ave", -- Name of the stop
|
|
Level = 1, -- Level required to do the stop
|
|
StopCoords = vector3(-44.8379, -1649.8337, 29.1988), -- Coords of the stop
|
|
PassengerWaitCoords = vector4(-42.4621, -1652.0872, 29.2884, 49.9490), -- Coords where the passengers will wait
|
|
MaxPassengers = 2, -- Max passengers to create on stop
|
|
MinPassengers = 1, -- Min passengers to create on stop
|
|
StopBlip = { -- Blip of the stop (https://docs.fivem.net/docs/game-references/blips/)
|
|
Sprite = 1,
|
|
Color = 4,
|
|
Scale = 0.6,
|
|
Text = "Statie: Carson Ave"
|
|
}
|
|
},
|
|
{
|
|
Preview = "https://cdn.discordapp.com/attachments/582570734174339101/1170377134091538473/image.png?ex=6558d1a5&is=65465ca5&hm=aac5e8e94aad977c8c30c62995568a7a60be8eed1bd17c9f4fae1d5bc35e8ee4&", -- Image of the stop (in the menu)
|
|
StopName = "Carson Ave", -- Name of the stop
|
|
Level = 2, -- Level required to do the stop
|
|
StopCoords = vector3(118.9607, -1453.2471, 29.2491), -- Coords of the stop
|
|
PassengerWaitCoords = vector4(121.5716, -1456.0439, 29.2944, 76.1904), -- Coords where the passengers will wait
|
|
MaxPassengers = 1, -- Max passengers to create on stop
|
|
MinPassengers = 1, -- Min passengers to create on stop
|
|
StopBlip = { -- Blip of the stop (https://docs.fivem.net/docs/game-references/blips/)
|
|
Sprite = 1,
|
|
Color = 4,
|
|
Scale = 0.6,
|
|
Text = "Statie: Carson Ave"
|
|
}
|
|
},
|
|
}
|
|
},
|
|
|
|
{
|
|
RouteName = "Movie Star Way", -- Name of the route
|
|
Salary = 200, -- Salary of the route
|
|
Level = 1, -- Level required to do the route
|
|
TicketPrice = 5, -- Price of the ticket
|
|
Exp = 3, -- Exp to give to the player each stop
|
|
|
|
Stops = {
|
|
{
|
|
Preview = "https://cdn.discordapp.com/attachments/582570734174339101/1169775464148107305/image.png?ex=6556a14c&is=65442c4c&hm=8a0180939fafeb0f6c2c0f2339e0901451a61bda046e80bbed0bb1efaa953f4e&", -- Image of the stop (in the menu)
|
|
StopName = "Little Bighorn Ave", -- Name of the stop
|
|
Level = 0, -- Level required to do the stop
|
|
StopCoords = vector3(460.4128, -618.2562, 28.4998), -- Coords of the stop
|
|
PassengerWaitCoords = vector4(455.2104, -615.7665, 28.4998, 291.3041), -- Coords where the passengers will wait
|
|
MaxPassengers = 6, -- Max passengers to create on stop
|
|
MinPassengers = 2, -- Min passengers to create on stop
|
|
StopBlip = { -- Blip of the stop (https://docs.fivem.net/docs/game-references/blips/)
|
|
Sprite = 1,
|
|
Color = 4,
|
|
Scale = 0.6,
|
|
Text = "Statie: Little Bighorn Ave"
|
|
}
|
|
},
|
|
{
|
|
Preview = "https://cdn.discordapp.com/attachments/582570734174339101/1169775669425733743/image.png?ex=6556a17c&is=65442c7c&hm=a5f86aec8864cd93dd27d515e7bea00a957b0dff5a3e16097c93448864a1cd70&", -- Image of the stop (in the menu)
|
|
StopName = "Elgin Ave", -- Name of the stop
|
|
Level = 0, -- Level required to do the stop
|
|
StopCoords = vector3(114.0657, -785.8300, 31.3968), -- Coords of the stop
|
|
PassengerWaitCoords = vector4(115.2365, -782.1114, 31.4007, 160.7219), -- Coords where the passengers will wait
|
|
MaxPassengers = 4, -- Max passengers to create on stop
|
|
MinPassengers = 1, -- Min passengers to create on stop
|
|
StopBlip = { -- Blip of the stop (https://docs.fivem.net/docs/game-references/blips/)
|
|
Sprite = 1,
|
|
Color = 4,
|
|
Scale = 0.6,
|
|
Text = "Statie: Elgin Ave"
|
|
}
|
|
},
|
|
{
|
|
Preview = "https://cdn.discordapp.com/attachments/582570734174339101/1170394764009537658/image.png?ex=6558e210&is=65466d10&hm=1dc931e23bcbe25480b93a098a7d8dab2cb0a9c3b21c22f70fb0666b13ab4b51&", -- Image of the stop (in the menu)
|
|
StopName = "Little Seoul", -- Name of the stop
|
|
Level = 0, -- Level required to do the stop
|
|
StopCoords = vector3(-511.7252, -649.1313, 33.0958), -- Coords of the stop
|
|
PassengerWaitCoords = vector4(-511.5065, -645.7701, 33.1609, 182.0), -- Coords where the passengers will wait
|
|
MaxPassengers = 6, -- Max passengers to create on stop
|
|
MinPassengers = 3, -- Min passengers to create on stop
|
|
StopBlip = { -- Blip of the stop (https://docs.fivem.net/docs/game-references/blips/)
|
|
Sprite = 1,
|
|
Color = 4,
|
|
Scale = 0.6,
|
|
Text = "Statie: Little Seoul"
|
|
}
|
|
},
|
|
{
|
|
Preview = "https://cdn.discordapp.com/attachments/582570734174339101/1170394880971911218/image.png?ex=6558e22c&is=65466d2c&hm=d75d6632e420dd3e7b8a7ed88de79ab2c1f5e5e6444ea142db72d042ce6f1c8b&", -- Image of the stop (in the menu)
|
|
StopName = "Movie Star Wy", -- Name of the stop
|
|
Level = 1, -- Level required to do the stop
|
|
StopCoords = vector3(-1037.4742, -271.0980, 37.6823), -- Coords of the stop
|
|
PassengerWaitCoords = vector4(-1034.0753, -269.7583, 37.7751, 116.2458), -- Coords where the passengers will wait
|
|
MaxPassengers = 2, -- Max passengers to create on stop
|
|
MinPassengers = 1, -- Min passengers to create on stop
|
|
StopBlip = { -- Blip of the stop (https://docs.fivem.net/docs/game-references/blips/)
|
|
Sprite = 1,
|
|
Color = 4,
|
|
Scale = 0.6,
|
|
Text = "Statie: Movie Star Wy"
|
|
}
|
|
},
|
|
{
|
|
Preview = "https://cdn.discordapp.com/attachments/582570734174339101/1170394945685831810/image.png?ex=6558e23b&is=65466d3b&hm=2fc0ceb46ecaf72f14d94b08fe49961c39b7c77f64ef748d0bfd6cc045c478f8&", -- Image of the stop (in the menu)
|
|
StopName = "Palomino Ave", -- Name of the stop
|
|
Level = 1, -- Level required to do the stop
|
|
StopCoords = vector3(-691.9785, -667.4823, 30.8143), -- Coords of the stop
|
|
PassengerWaitCoords = vector4(-692.0262, -670.0702, 30.8745, 0.6169), -- Coords where the passengers will wait
|
|
MaxPassengers = 2, -- Max passengers to create on stop
|
|
MinPassengers = 1, -- Min passengers to create on stop
|
|
StopBlip = { -- Blip of the stop (https://docs.fivem.net/docs/game-references/blips/)
|
|
Sprite = 1,
|
|
Color = 4,
|
|
Scale = 0.6,
|
|
Text = "Statie: Palomino Ave"
|
|
}
|
|
},
|
|
{
|
|
Preview = "https://cdn.discordapp.com/attachments/582570734174339101/1170394795785601024/image.png?ex=6558e218&is=65466d18&hm=e27569d858fc2d60ca5a2c78ea1d958ffa6d706ecd9192ad23b05343e9408728&", -- Image of the stop (in the menu)
|
|
StopName = "Little Seoul", -- Name of the stop
|
|
Level = 2, -- Level required to do the stop
|
|
StopCoords = vector3(-504.7980, -667.9174, 32.9930), -- Coords of the stop
|
|
PassengerWaitCoords = vector4(-504.8210, -670.2271, 33.0938, 359.1518), -- Coords where the passengers will wait
|
|
MaxPassengers = 6, -- Max passengers to create on stop
|
|
MinPassengers = 3, -- Min passengers to create on stop
|
|
StopBlip = { -- Blip of the stop (https://docs.fivem.net/docs/game-references/blips/)
|
|
Sprite = 1,
|
|
Color = 4,
|
|
Scale = 0.6,
|
|
Text = "Statie: Little Seoul"
|
|
}
|
|
},
|
|
{
|
|
Preview = "https://cdn.discordapp.com/attachments/582570734174339101/1170395220446281778/image.png?ex=6558e27d&is=65466d7d&hm=3627218db5aa8585d02c9c5bcdbde53f2ed561b3a2804893ec4e035d156afc79&", -- Image of the stop (in the menu)
|
|
StopName = "Strawberry Ave", -- Name of the stop
|
|
Level = 2, -- Level required to do the stop
|
|
StopCoords = vector3(341.8715, -865.5232, 29.2834), -- Coords of the stop
|
|
PassengerWaitCoords = vector4(341.8887, -869.7383, 29.2916, 359.9434), -- Coords where the passengers will wait
|
|
MaxPassengers = 2, -- Max passengers to create on stop
|
|
MinPassengers = 1, -- Min passengers to create on stop
|
|
StopBlip = { -- Blip of the stop (https://docs.fivem.net/docs/game-references/blips/)
|
|
Sprite = 1,
|
|
Color = 4,
|
|
Scale = 0.6,
|
|
Text = "Statie: Strawberry Ave"
|
|
}
|
|
},
|
|
}
|
|
},
|
|
},
|
|
|
|
Notify = function(msg, type, length)
|
|
if Config.Framework == "qb" then
|
|
Framework.Functions.Notify(msg, type, length)
|
|
else
|
|
Framework.ShowNotification(msg)
|
|
end
|
|
end,
|
|
|
|
SetFuel = function(vehicle)
|
|
-- exports["LegacyFuel"]:SetFuel(vehicle, 100)
|
|
end,
|
|
} |