Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DS_Gas_Stations_Config = {
- Target = false, -- false or 'qtarget' / 'ox_target' / 'qb-target'
- SaveTime = 300000, --SAVE GAS STATION DATA EVERY 5 MINUTES
- CreateGasStationCommand = 'creategasstation',
- RemoveGasStationCommand = 'removegasstation',
- DefaultGasolinePrice = 2,
- ElectricFee = 1, --HOW MUCH GAS STATION OWNERS PAY FOR EACH ELECTRIC "LITER" REFUEL
- DefaultElectricPrice = 2,
- DefaultJerrycanPrice = 100,
- StarterFuel = 100, --STARTER FUEL AUTOMATICALLY GIVEN WHEN YOU CREATE A GAS STATION
- StarterBalance = 0, --STARTER GAS STATION BALANCE AUTOMATICALLY GIVEN WHEN YOU CREATE IT
- DefaultStationName = 'Gas Station',
- DefaultPed = "ig_lestercrest", --ONLY FOR TARGET INTERACTIONS (https://wiki.rage.mp/index.php?title=Peds)
- Trailer = "tanker",
- EnterAutomatically = true, --SHOULD PED GO TO TRUCK AND ENTER AUTOMATICALLY?
- TruckRefillPositions = { --YOU CAN ADD UNLIMITED TRUCK ROUTES AND ONE WILL BE RANDOMLY SELECTED
- vec3(2740.778, 1430.162, 24.49718),
- vec3(2705.248, 1572.2, 24.51665),
- vec3(1216.854, 1872.909, 78.92651)
- },
- MaxJerrycanPrice = 500, --MAX JERRYCAN PRICE THAT GAS STATION OWNERS CAN SET
- MaxGasolinePrice = 10, --MAX FUEL PRICE THAT GAS STATION OWNERS CAN SET
- MaxElectricPrice = 5, --MAX FUEL PRICE THAT GAS STATION OWNERS CAN SET
- RefuelWait = 1000, --WAIT TIME FOR EACH LITER IN MILLISECONDS
- RopeLenght = 3.5,
- RopeMaxLenght = 5.0,
- PumpProps = {
- `prop_gas_pump_1d`,
- `prop_gas_pump_1a`,
- `prop_gas_pump_1b`,
- `prop_gas_pump_1c`,
- `prop_vintage_pump`,
- `prop_gas_pump_old2`,
- `prop_gas_pump_old3`
- },
- SellPercent = 50, --SELL GAS STATION 50% LESS THAN ORIGINAL PRICE
- FuelDecor = 'FUEL', --YOU DON'T NEED TO CHANGE THIS
- ElectricVehicles = { --ELECTRIC VEHICLES LIST
- "neon",
- "raiden",
- "caddy",
- "caddy2",
- "caddy3",
- "cyclone",
- "dilettante",
- "dilettante2",
- "surge",
- "tezeract",
- "imorgon",
- "khamelion",
- "voltic",
- "iwagen"
- },
- rpmUsage = {
- [1.0] = 1.4,
- [0.9] = 1.2,
- [0.8] = 1.0,
- [0.7] = 0.9,
- [0.6] = 0.8,
- [0.5] = 0.7,
- [0.4] = 0.5,
- [0.3] = 0.4,
- [0.2] = 0.2,
- [0.1] = 0.1,
- [0.0] = 0.0,
- },
- VehicleClasses = { --VEHICLE CATEGORY, RECOMMENDED FUEL, FUEL USAGE
- [0] = 1.0, --COMPACT
- [1] = 1.0, --SEDAN
- [2] = 1.0, --SUV
- [3] = 1.0, --COUPE
- [4] = 1.0, --MUSCLE
- [5] = 1.0, --SPORT CLASSIC
- [6] = 1.0, --SPORT
- [7] = 1.0, --SUPER
- [8] = 1.0, --MOTORCYCLE
- [9] = 1.0, --OFF-ROAD
- [10] = 1.0, --INDUSTRIAL
- [11] = 1.0, --UTILITY
- [12] = 1.0, --VANS
- [14] = 1.0, --BOAT
- [15] = 1.0, --HELICOPTER
- [16] = 1.0, --PLANE
- [17] = 1.0, --SERVICE
- [18] = 1.0, --EMERGENCY
- [19] = 1.0, --MILITARY
- [20] = 1.0, --COMMERCIAL
- [22] = 1.0, --OPEN WHEEL
- },
- stationLevels = {
- ["1"] = {
- capacity = 400,
- price = 0
- },
- ["2"] = {
- capacity = 800,
- price = 5000,
- },
- ["3"] = {
- capacity = 1200,
- price = 10000,
- }
- },
- statisticsBarriers = {0, 2500, 5000, 7500, 10000},
- vehicles = {
- { id = 1, name = 'Hauler', model = 'hauler', price = 10000, sellPrice = 2500, capacity = 200, image = 'hauler.png'},
- { id = 2, name = 'Phantom', model = 'phantom', price = 10000, sellPrice = 3000, capacity = 400, image = 'phantom.png'},
- },
- Translations = {
- ["no_permissions"] = "You don't have permissions to do that.",
- ["hired"] = "You was hired in this gas station!",
- ["station"] = "Gas Station",
- ["open_menu"] = "[E] - Open Menu",
- ["create_station"] = "Create Gas Station",
- ["create_desc"] = "Create a new gas station!",
- ["create_input"] = "Set Gas Station Management Position",
- ["cancel"] = "Cancel",
- ["accept"] = "Accept",
- ["delete"] = "Delete",
- ["create_truck_input"] = "Set Truck Spawn Position",
- ["changed_name"] = "You have successfully changed your gas station name to '%s'!",
- ["amount"] = "Amount",
- ["amount_min"] = "Amount must be atleast 1",
- ["amount_err"] = "Amount can not be more than balance",
- ["err_price"] = "Max price can be %s%s",
- ["dash_desc"] = "You can manage your station here",
- ["owner"] = "Owner",
- ["employee"] = "Employee",
- ["s_employee"] = "Select a employee",
- ["s_create"] = "Create Station",
- ["s_create_desc"] = "Create a new station",
- ["confirm"] = "Are you sure?",
- ["b_station"] = "Buy Station",
- ["s_station"] = "Sell Station",
- ["c_fuel"] = "Current Fuel",
- ["max_fuel"] = "Max Fuel",
- ["refuel_desc"] = "You can refuel your vehicle here.",
- ["h_employee"] = "Hire Employee",
- ["h_employee_desc"] = "Hire a new Employee",
- ["f_employee"] = "Fire Employee",
- ["name"] = "Name",
- ["fire"] = "Fire",
- ["hire"] = "Hire",
- ["role"] = "Role",
- ["save"] = "Save",
- ["date"] = "Date",
- ["type"] = "Type",
- ["by"] = "By",
- ["status"] = "Status",
- ["create"] = "Create",
- ["reward"] = "Reward",
- ["perms"] = "Permissions",
- ["sel_vehicle"] = "Select a vehicle",
- ["shipment"] = "Shipment",
- ["d_shipment"] = "Delete Shipment",
- ["a_shipment"] = "Accept Shipment",
- ["c_shipment"] = "Create Shipment",
- ["c_shipment_desc"] = "Create a shipment",
- ["completed_ship"] = "Completed Shipments",
- ["exceed_capacity"] = "You can't create a shipment that will exceed maximum tanker capacity",
- ["change_g_price"] = "Change Gasoline Price",
- ["change_g_price_d"] = "Change Station's Gasoline Price per liter",
- ["change_e_price"] = "Change Electric Price",
- ["change_e_price_d"] = "Change Station's Electric Price per watt",
- ["vehicle"] = "Vehicle",
- ["vehicles"] = "Vehicles",
- ["overview"] = "Overview",
- ["deposit"] = "Deposit",
- ["withdraw"] = "Withdraw",
- ["s_name"] = "Station Name",
- ["s_name_err"] = "Station Name must be atleast 5 characters",
- ["s_name_title"] = "Change Station Name",
- ["s_name_desc"] = "Your Station's name is a unique identifier for your station",
- ["m_deposit"] = "Deposit Money",
- ["m_deposit_desc"] = "You are about to deposit money to this station. This action cannot be undone",
- ["m_withdraw"] = "Withdraw Money",
- ["m_withdraw_desc"] = "You are about to withdraw money from this station. This action cannot be undone",
- ["balance"] = "Balance",
- ["tot_balance"] = "total balance",
- ["tot_capacity"] = "total capacity",
- ["transactions"] = "Transactions",
- ["pricing"] = "Pricing",
- ["employees"] = "Employees",
- ["employee_perms"] = "Change Permissions",
- ["employee_perms_desc"] = "Change employee's Permissions.",
- ["buy_vehicle"] = "Buy Vehicle",
- ["buy_vehicle_c"] = "Confirm Buy Vehicle",
- ["sell_vehicle"] = "Sell Vehicle",
- ["sell_vehicle_c"] = "Confirm Sell Vehicle",
- ["upgrade"] = "Upgrade",
- ["tanker"] = "Tanker",
- ["upgrade_tanker"] = "Upgrade Tanker",
- ["upgrade_desc"] = "You are about to upgrade the station. This action cannot be undone",
- ["electric_fee"] = "Electric Fee (per transaction)",
- ["m1"] = "Jan",
- ["m2"] = "Feb",
- ["m3"] = "Mar",
- ["m4"] = "Apr",
- ["m5"] = "May",
- ["m6"] = "Jun",
- ["m7"] = "Jul",
- ["m8"] = "Aug",
- ["m9"] = "Sep",
- ["m10"] = "Oct",
- ["m11"] = "Nov",
- ["m12"] = "Dec",
- ["price"] = "Price",
- ["custom_ped"] = "Custom Ped (optional)",
- ["s_fuel"] = "Starter Fuel (optional)",
- ["s_balance"] = "Starter Balance (optional)",
- ["s_fuelprice"] = "Fuel Price (optional)",
- ["remove_station"] = "Remove Closest Gas Station",
- ["remove_desc"] = "Note, this action is irreversible!",
- ["remove_input"] = "Remove '%s' Gas Station?",
- ["not_found"] = "No Gas Stations Found. [R] - Cancel",
- ["max_price"] = "The maximum price you can put is %s%s!",
- ["come_here"] = "Come here to refuel the vehicle.",
- ["changed_price"] = "You changed the fuel price to %s%s!",
- ["no_money"] = "You don't have enough money",
- ["no_money_station"] = "The gas station doesn't have enough money",
- ["deposited"] = "You deposited %s%s into the gas station account!",
- ["withdrawn"] = "You withdraw %s%s from the gas station account!",
- ["bought"] = "You have bought the gas station!",
- ["sold"] = "You sold your gas station successfully for %s%s!",
- ["refuel_input"] = "Refuel Vehicle",
- ["refuel_veh"] = "Refuel vehicle",
- ["buy_jerry"] = "Buy Jerrycan",
- ["buy_jerry_desc"] = "Purchase a new Jerrycan.",
- ["jerry_price"] = "Change Jerrycan Price",
- ["jerry_price_desc"] = "Change Station's Jerrycan price",
- ["p_jerrycan"] = "per jerry can",
- ["p_liter"] = "per liter",
- ["p_watt"] = "per watt",
- ["refueled"] = "Vehicle refueled successfully!",
- ["no_fuel"] = "The gas station doesn't have %s liters of fuel.",
- ["no_vehicle"] = "No vehicle nearby.",
- ["jerry_confirm"] = "Are you sure you want buy a jerrycan for %s%s?",
- ["mission_failed"] = "Mission failed!",
- ["mission_completed"] = "Mission completed, you have refueled the gas station!",
- ["no_trailer"] = "~r~YOU NEED TO ATTACH THE TRAILER",
- ["go_position"] = "~w~Go To The Marked ~y~Position",
- ["go_back"] = "~w~Go Back To The ~y~Gas Station",
- ["go_truck"] = "~w~Get In The ~y~Truck",
- ["refueling_truck"] = "~g~Refueling Truck...",
- ["refueling_veh"] = "Refueling Vehicle...",
- ["refuel"] = "Refuel",
- ["no_truck"] = "~r~YOU NEED TO BE IN YOUR ASSIGNED TRUCK",
- ["attach_pump"] = "~w~[~g~E~w~] Attach Pump",
- ["detach_pump"] = "~w~[~g~E~w~]Detach Pump",
- ["jerrycan"] = "Jerrycan",
- ["refill_jerry"] = "~w~[~g~E~w~] Refill",
- ["refill_info"] = "Vehicle Fuel: %s liters",
- ["not_authorized"] = "You are not authorized",
- ["currency"] = "$",
- }
- }
- DS_Gas_Stations_Config.Notification = function(msg)
- BeginTextCommandThefeedPost('STRING')
- AddTextComponentSubstringPlayerName(msg)
- EndTextCommandThefeedPostTicker(0, 1)
- end
- DS_Gas_Stations_Config.Draw3DText = function(x, y, z, text)
- SetTextScale(0.325, 0.325)
- SetTextFont(4)
- SetTextProportional(1)
- SetTextColour(255, 255, 255, 215)
- SetTextEntry("STRING")
- SetTextCentre(true)
- AddTextComponentString(text)
- SetDrawOrigin(x,y,z, 0)
- DrawText(0.0, 0.0)
- local factor = (string.len(text)) / 370
- DrawRect(0.0, 0.0+0.0125, 0.017+ factor, 0.03, 0, 0, 0, 68)
- ClearDrawOrigin()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement