Configuration

Every aspect of the script can be configured in shared/config.lua.

Config = {
    Lang = "en",
    System = {
        CheckForNewVersion = true,                  -- Check for new script versions?
        Debug = false,                              -- Enable debug messages
    },
    FuelSystem = "ps-fuel",                         -- Set your fuel system, event can be edited in client/cl_unencrypted.lua
    needsJob = true,                                -- Does the player need a specific job? true or false
    jobNeeded = {                                   -- Define the jobs that can start bus routes
        "bus",
    },

    locations = {                                   -- Location for the bus driver menu
        [1] = {
            name = "Bus Job",                       -- Name for the blip
            showBlip = true,                        -- Show blip on the (mini)map?
            blipData = {
                sprite = 513,
                display = 4,
                scale = 0.65,
                colour = 3,
            },
            coords = vector4(462.72, -575.38, 28.5, 330.28),
            zoneOptions = {
                length = 3.0,
                width = 3.0,
            },
        },
    },

    useExpSystem = true,                            -- Use the experience system? Set to true or false
    payPerPassenger = true,                         -- Set this to true to pay the player per passenger, set to false to pay per route
    payDeposit = true,                              -- Should the player pay a deposit for the job vehicle?
    depositAmount = 250,                            -- How much is the deposit amount (if payDeposit is true)?

    busSpawn = vector4(466.73, -580.02, 28.5, 83.05), -- Bus spawn location
    maxNPCsToSpawn = 6,                             -- This sets the maximum amount of passengers to spawn at a bus location
                                                    -- Set to false to disable, or any numeric max amount

    startPoints = {                                 -- Divine the starting points (eg. bus station)
        busLocations = {
            vector4(462.58, -605.78, 28.49, 32.51),
            vector4(461.35, -612.07, 28.5, 32.37),
            vector4(460.6, -619.15, 28.5, 33.04),
            vector4(459.77, -626.05, 28.5, 32.43),
            vector4(459.23, -633.04, 28.5, 34.39),
            vector4(458.65, -640.6, 28.46, 33.94),
            vector4(458.01, -647.86, 28.22, 32.71),
            vector4(457.27, -654.73, 27.83, 34.06),
        },
        pedLocations = {
            vector4(455.79, -606.68, 28.5, 219.14),
            vector4(453.22, -614.05, 28.57, 253.33),
            vector4(454.6, -617.55, 28.51, 295.75),
            vector4(453.49, -624.89, 28.53, 268.03),
            vector4(452.89, -631.02, 28.53, 219.1),
            vector4(452.83, -634.89, 28.52, 268.98),
            vector4(452.25, -636.46, 28.52, 166.45),
            vector4(451.91, -640.52, 28.5, 226.1),
            vector4(451.29, -645.79, 28.47, 289.18),
        },
    },
    endRouteAtStart = true,                         -- Should the endpoints be the same as starting points (true/false)?
    endPoints = {                                   -- Divine the endpoints (eg. bus station), if endRouteAtStart is set to false
        --vector4(1, 2, 3, 4),
    },

    --[[ DEFAULT AVAILABLE BUSSES:
        bus
        airbus
        rentalbus
        coach
    ]]

    busRoutes = {                                   -- Build your routes here
        [1] = {                                     -- First route, make sure the numbers follow each other up, eg. 1, 2, 3, etc...
            routeName = "Downtown",                 -- Give the route a name, will be visible in the bus menu
            routeImage = "images/route_1.png",      -- Set in image to show in the menu
            expNeeded = 0,                          -- Experience needed for this route (if useExpSystem is set to true)
            expPerPassenger = 0.2,                  -- Define the experience gained per transported passenger (if useExpSystem is set to true)
            passengerPayment = 15,                  -- Amount to use to multiply per transported passenger and to pay the player (if payPerPassenger is set to true)
            routePayment = 1500,                    -- Amount to pay the player (if payPerPassenger is set to false)
            vehicle = "bus",                        -- Define the vehicle used for this route
            busStops = {                            -- Build your bus stops
                [1] = {                             -- First stop, make sure the numbers follow each other up, eg. 1, 2, 3, etc...
                    busLocation = vector4(308.44, -761.9, 29.22, 160.16), -- Location for the bus to stop
                    pedLocations = {                -- Locations for peds to wait for the bus
                        vector4(303.19, -766.49, 29.31, 269.26),
                        vector4(304.39, -764.98, 29.31, 273.24),
                        vector4(304.92, -761.53, 29.31, 211.14),
                    },
                },
                [2] = {
                    busLocation = vector4(120.53, -786.28, 31.26, 70.11),
                    pedLocations = {
                        vector4(114.85, -781.12, 31.4, 197.43),
                        vector4(110.6, -779.04, 31.43, 180.72),
                        vector4(114.42, -776.44, 31.42, 21.03),
                        vector4(120.88, -779.94, 31.37, 194.71),
                        vector4(138.12, -788.56, 31.23, 109.93),
                    },
                },
                [3] = {
                    busLocation = vector4(-170.09, -812.01, 31.27, 159.12),
                    pedLocations = {
                        vector4(-176.16, -816.67, 31.16, 283.42),
                        vector4(-177.45, -820.32, 31.04, 306.76),
                        vector4(-178.57, -823.42, 30.94, 314.51),
                        vector4(-183.98, -818.53, 31.04, 219.53),
                        vector4(-180.62, -812.67, 31.24, 94.57),
                        vector4(-170.32, -803.03, 31.61, 276.71),
                    },
                },
                [4] = {
                    busLocation = vector4(-272.79, -827.41, 31.71, 339.74),
                    pedLocations = {
                        vector4(-266.98, -823.43, 31.83, 65.23),
                        vector4(-268.44, -827.16, 31.81, 45.89),
                        vector4(-269.85, -828.52, 31.82, 43.15),
                        vector4(-263.85, -827.59, 31.74, 68.8),
                        vector4(-258.99, -840.9, 31.42, 94.19),
                        vector4(-244.29, -811.72, 30.72, 89.65),
                    },
                },
                [5] = {
                    busLocation = vector4(-209.72, -560.15, 34.55, 339.55),
                    pedLocations = {
                        vector4(-202.84, -554.46, 34.67, 113.57),
                        vector4(-199.56, -568.6, 38.1, 2.49),
                        vector4(-202.28, -565.95, 34.65, 33.02),
                        vector4(-203.01, -576.94, 34.57, 33.8),
                        vector4(-215.04, -584.95, 34.44, 10.01),
                        vector4(-209.6, -569.99, 34.59, 353.19),
                    },
                },
                [6] = {
                    busLocation = vector4(-517.98, -75.75, 39.91, 63.98),
                    pedLocations = {
                        vector4(-522.29, -68.96, 40.4, 143.35),
                        vector4(-517.45, -66.18, 40.84, 171.23),
                        vector4(-491.5, -70.17, 40.4, 107.66),
                        vector4(-537.47, -60.29, 41.55, 180.88),
                        vector4(-533.46, -63.65, 41.11, 358.6),
                    },
                },
                [7] = {
                    busLocation = vector4(-569.83, 267.88, 82.85, 84.86),
                    pedLocations = {
                        vector4(-575.56, 272.42, 82.79, 189.05),
                        vector4(-568.36, 271.0, 83.02, 167.02),
                        vector4(-564.47, 278.26, 83.14, 205.4),
                        vector4(-575.4, 277.16, 82.78, 217.52),
                        vector4(-582.76, 273.2, 82.56, 105.34),
                    },
                },
                [8] = {
                    busLocation = vector4(-669.46, -121.26, 37.73, 210.25),
                    pedLocations = {
                        vector4(-661.44, -137.81, 37.86, 44.01),
                        vector4(-669.58, -138.89, 37.92, 172.29),
                        vector4(-673.98, -130.52, 37.92, 273.68),
                        vector4(-673.5, -123.31, 37.87, 328.01),
                        vector4(-685.4, -110.43, 37.83, 297.95),
                    },
                },
                [9] = {
                    busLocation = vector4(-583.1, -264.96, 35.58, 209.31),
                    pedLocations = {
                        vector4(-584.78, -274.93, 35.52, 340.55),
                        vector4(-581.58, -272.96, 35.49, 328.53),
                        vector4(-577.67, -288.94, 35.14, 6.57),
                        vector4(-586.39, -265.98, 35.74, 332.21),
                    },
                },
                [10] = {
                    busLocation = vector4(-124.0, -314.98, 38.86, 341.59),
                    pedLocations = {
                        vector4(-118.96, -310.46, 39.49, 120.79),
                        vector4(-109.56, -317.7, 39.4, 71.95),
                        vector4(-118.09, -320.33, 38.68, 69.47),
                        vector4(-122.85, -345.85, 36.33, 99.15),
                    },
                },
                [11] = {
                    busLocation = vector4(109.25, -321.36, 45.59, 251.83),
                    pedLocations = {
                        vector4(118.25, -327.7, 45.39, 355.26),
                        vector4(108.96, -330.28, 45.61, 279.38),
                        vector4(106.87, -323.48, 45.72, 233.79),
                        vector4(144.82, -344.83, 44.35, 358.19),
                    },
                },
                [12] = {
                    busLocation = vector4(253.73, -569.07, 43.19, 158.21),
                    pedLocations = {
                        vector4(248.47, -573.84, 43.3, 290.44),
                        vector4(242.73, -571.85, 43.28, 318.18),
                        vector4(242.42, -560.39, 43.28, 167.78),
                        vector4(250.56, -561.16, 43.27, 285.6),
                        vector4(288.26, -576.87, 43.27, 68.62),
                    },
                },
                [13] = {
                    busLocation = vector4(223.14, -853.43, 30.04, 249.24),
                    pedLocations = {
                        vector4(226.64, -858.08, 30.07, 341.05),
                        vector4(214.75, -862.23, 30.4, 298.44),
                        vector4(208.03, -851.26, 30.54, 4.96),
                        vector4(219.35, -876.43, 30.49, 330.02),
                        vector4(231.08, -859.8, 29.96, 335.54),
                    },
                },
                [14] = {
                    busLocation = vector4(339.88, -744.83, 29.17, 341.23),
                    pedLocations = {
                        vector4(345.56, -739.53, 29.27, 98.66),
                        vector4(345.35, -735.64, 29.27, 67.35),
                        vector4(340.49, -754.12, 29.27, 63.87),
                        vector4(341.07, -749.81, 29.27, 1.05),
                    },
                },
            },
        },
        [2] = {
            routeName = "Airport",
            routeImage = "images/route_2.png",
            expNeeded = 200,
            expPerPassenger = 0.2,
            passengerPayment = 15,
            routePayment = 1500,
            vehicle = "airbus",
            busStops = {
                [1] = {
                    busLocation = vector4(308.44, -761.9, 29.22, 160.16),
                    pedLocations = {
                        vector4(303.19, -766.49, 29.31, 269.26),
                        vector4(304.39, -764.98, 29.31, 273.24),
                        vector4(304.92, -761.53, 29.31, 211.14),
                    },
                },
                [2] = {
                    busLocation = vector4(73.42, -1471.07, 29.2, 139.27),
                    pedLocations = {
                        vector4(63.88, -1475.19, 29.3, 232.92),
                        vector4(65.22, -1473.62, 29.3, 258.79),
                        vector4(67.63, -1472.81, 29.29, 216.05),
                        vector4(61.14, -1478.7, 29.29, 291.07),
                        vector4(61.04, -1474.05, 29.29, 244.08),
                    },
                },
                [3] = {
                    busLocation = vector4(-104.37, -1682.44, 29.2, 140.16),
                    pedLocations = {
                        vector4(-111.65, -1686.54, 29.31, 248.87),
                        vector4(-110.52, -1683.96, 29.31, 75.11),
                        vector4(-107.8, -1682.17, 29.35, 299.76),
                        vector4(-113.71, -1669.85, 31.07, 219.51),
                    },
                },
                [4] = {
                    busLocation = vector4(-1067.24, -2564.78, 20.08, 149.05),
                    pedLocations = {
                        vector4(-1078.15, -2573.26, 20.17, 292.21),
                        vector4(-1074.99, -2570.6, 20.17, 291.65),
                        vector4(-1075.03, -2565.82, 20.17, 222.4),
                        vector4(-1072.37, -2567.36, 20.17, 281.23),
                        vector4(-1071.3, -2565.11, 20.17, 184.02),
                        vector4(-1066.83, -2558.39, 20.17, 184.48),
                    },
                },
                [5] = {
                    busLocation = vector4(-1032.47, -2730.78, 20.08, 239.85),
                    pedLocations = {
                        vector4(-1025.88, -2737.61, 20.17, 9.05),
                        vector4(-1029.41, -2737.27, 20.17, 245.67),
                        vector4(-1031.51, -2735.28, 20.23, 339.38),
                        vector4(-1034.75, -2739.54, 20.17, 305.15),
                        vector4(-1041.12, -2734.22, 20.17, 299.5),
                        vector4(-1038.09, -2731.45, 20.17, 305.53),
                        vector4(-1049.07, -2728.68, 20.19, 247.86),
                    },
                },
                [6] = {
                    busLocation = vector4(-1050.18, -2542.64, 13.68, 150.37),
                    pedLocations = {
                        vector4(-1058.1, -2547.76, 13.83, 291.44),
                        vector4(-1055.32, -2531.54, 13.94, 220.42),
                        vector4(-1049.65, -2532.73, 13.83, 290.51),
                        vector4(-1053.72, -2537.35, 13.88, 223.77),
                        vector4(-1067.27, -2553.76, 13.85, 117.15),
                        vector4(-1057.46, -2563.95, 13.95, 349.0),
                    },
                },
                [7] = {
                    busLocation = vector4(-1060.76, -2707.03, 13.67, 235.57),
                    pedLocations = {
                        vector4(-1058.27, -2713.07, 13.76, 14.4),
                        vector4(-1060.41, -2712.23, 13.76, 281.45),
                        vector4(-1058.9, -2719.07, 13.76, 147.47),
                        vector4(-1063.41, -2714.6, 13.76, 17.09),
                        vector4(-1060.4, -2721.09, 13.76, 30.36),
                    },
                },
                [8] = {
                    busLocation = vector4(-304.64, -1843.65, 25.2, 261.93),
                    pedLocations = {
                        vector4(-300.12, -1847.92, 25.55, 353.09),
                        vector4(-300.61, -1851.56, 25.49, 249.75),
                        vector4(-302.47, -1862.93, 25.86, 58.61),
                        vector4(-318.7, -1854.36, 24.39, 302.44),
                        vector4(-310.06, -1847.61, 24.92, 303.7),
                    },
                },
                [9] = {
                    busLocation = vector4(-44.96, -1650.0, 29.19, 319.58),
                    pedLocations = {
                        vector4(-37.73, -1647.36, 29.28, 96.74),
                        vector4(-42.56, -1659.81, 29.28, 336.02),
                        vector4(-49.51, -1661.83, 29.28, 93.51),
                        vector4(-46.95, -1669.95, 29.49, 22.86),
                    },
                },
                [10] = {
                    busLocation = vector4(46.13, -1541.96, 29.19, 320.31),
                    pedLocations = {
                        vector4(57.92, -1539.12, 29.29, 81.03),
                        vector4(55.69, -1541.34, 29.29, 51.4),
                        vector4(49.89, -1541.64, 29.29, 84.22),
                        vector4(48.3, -1556.51, 29.34, 32.5),
                    },
                },
                [11] = {
                    busLocation = vector4(263.87, -1179.86, 29.45, 90.44),
                    pedLocations = {
                        vector4(258.34, -1174.31, 29.41, 176.06),
                        vector4(266.92, -1174.27, 29.41, 143.53),
                        vector4(264.81, -1169.4, 29.32, 57.5),
                        vector4(256.84, -1168.33, 29.32, 201.16),
                    },
                },
                [12] = {
                    busLocation = vector4(339.88, -744.83, 29.17, 341.23),
                    pedLocations = {
                        vector4(345.56, -739.53, 29.27, 98.66),
                        vector4(345.35, -735.64, 29.27, 67.35),
                        vector4(340.49, -754.12, 29.27, 63.87),
                        vector4(341.07, -749.81, 29.27, 1.05),
                    },
                },
            },
        },
    },

    NpcSkins = {
        [1] = {                                     -- Female
            `a_f_m_skidrow_01`,
            `a_f_m_soucentmc_01`,
            `a_f_m_soucent_01`,
            `a_f_m_soucent_02`,
            `a_f_m_tourist_01`,
            `a_f_m_trampbeac_01`,
            `a_f_m_tramp_01`,
            `a_f_o_genstreet_01`,
            `a_f_o_indian_01`,
            `a_f_o_ktown_01`,
            `a_f_o_salton_01`,
            `a_f_o_soucent_01`,
            `a_f_o_soucent_02`,
            `a_f_y_beach_01`,
            `a_f_y_bevhills_01`,
            `a_f_y_bevhills_02`,
            `a_f_y_bevhills_03`,
            `a_f_y_bevhills_04`,
            `a_f_y_business_01`,
            `a_f_y_business_02`,
            `a_f_y_business_03`,
            `a_f_y_business_04`,
            `a_f_y_eastsa_01`,
            `a_f_y_eastsa_02`,
            `a_f_y_eastsa_03`,
            `a_f_y_epsilon_01`,
            `a_f_y_fitness_01`,
            `a_f_y_fitness_02`,
            `a_f_y_genhot_01`,
            `a_f_y_golfer_01`,
            `a_f_y_hiker_01`,
            `a_f_y_hipster_01`,
            `a_f_y_hipster_02`,
            `a_f_y_hipster_03`,
            `a_f_y_hipster_04`,
            `a_f_y_indian_01`,
            `a_f_y_juggalo_01`,
            `a_f_y_runner_01`,
            `a_f_y_rurmeth_01`,
            `a_f_y_scdressy_01`,
            `a_f_y_skater_01`,
            `a_f_y_soucent_01`,
            `a_f_y_soucent_02`,
            `a_f_y_soucent_03`,
            `a_f_y_tennis_01`,
            `a_f_y_tourist_01`,
            `a_f_y_tourist_02`,
            `a_f_y_vinewood_01`,
            `a_f_y_vinewood_02`,
            `a_f_y_vinewood_03`,
            `a_f_y_vinewood_04`,
            `a_f_y_yoga_01`,
            `g_f_y_ballas_01`,
        },
        [2] = {                                     -- Male
            `ig_barry`,
            `ig_bestmen`,
            `ig_beverly`,
            `ig_car3guy1`,
            `ig_car3guy2`,
            `ig_casey`,
            `ig_chef`,
            `ig_chengsr`,
            `ig_chrisformage`,
            `ig_clay`,
            `ig_claypain`,
            `ig_cletus`,
            `ig_dale`,
            `ig_dreyfuss`,
            `ig_fbisuit_01`,
            `ig_floyd`,
            `ig_groom`,
            `ig_hao`,
            `ig_hunter`,
            `csb_prolsec`,
            `ig_joeminuteman`,
            `ig_josef`,
            `ig_josh`,
            `ig_lamardavis`,
            `ig_lazlow`,
            `ig_lestercrest`,
            `ig_lifeinvad_01`,
            `ig_lifeinvad_02`,
            `ig_manuel`,
            `ig_milton`,
            `ig_mrk`,
            `ig_nervousron`,
            `ig_nigel`,
            `ig_old_man1a`,
            `ig_old_man2`,
            `ig_oneil`,
            `ig_orleans`,
            `ig_ortega`,
            `ig_paper`,
            `ig_priest`,
            `ig_prolsec_02`,
            `ig_ramp_gang`,
            `ig_ramp_hic`,
            `ig_ramp_hipster`,
            `ig_ramp_mex`,
            `ig_roccopelosi`,
            `ig_russiandrunk`,
            `ig_siemonyetarian`,
            `ig_solomon`,
            `ig_stevehains`,
            `ig_stretch`,
            `ig_talina`,
            `ig_taocheng`,
            `ig_taostranslator`,
            `ig_tenniscoach`,
            `ig_terry`,
            `ig_tomepsilon`,
            `ig_tylerdix`,
            `ig_wade`,
            `ig_zimbor`,
            `s_m_m_paramedic_01`,
            `a_m_m_afriamer_01`,
            `a_m_m_beach_01`,
            `a_m_m_beach_02`,
            `a_m_m_bevhills_01`,
            `a_m_m_bevhills_02`,
            `a_m_m_business_01`,
            `a_m_m_eastsa_01`,
            `a_m_m_eastsa_02`,
            `a_m_m_farmer_01`,
            `a_m_m_fatlatin_01`,
            `a_m_m_genfat_01`,
            `a_m_m_genfat_02`,
            `a_m_m_golfer_01`,
            `a_m_m_hasjew_01`,
            `a_m_m_hillbilly_01`,
            `a_m_m_hillbilly_02`,
            `a_m_m_indian_01`,
            `a_m_m_ktown_01`,
            `a_m_m_malibu_01`,
            `a_m_m_mexcntry_01`,
            `a_m_m_mexlabor_01`,
            `a_m_m_og_boss_01`,
            `a_m_m_paparazzi_01`,
            `a_m_m_polynesian_01`,
            `a_m_m_prolhost_01`,
            `a_m_m_rurmeth_01`,
        }
    },
}

-- DO NOT TOUCH!
Loc = {}

Last updated