Advertisement
Crap-Head

Gas Stations Config

Sep 28th, 2024 (edited)
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.84 KB | None | 0 0
  1. --[[
  2.     General
  3. --]]
  4. CH_Gas_Station.Config.Language = "en" -- Set the language of the script.
  5.  
  6. CH_Gas_Station.Config.DistanceTo3D2D = 250000 -- How far away is 3d2d rendered?
  7. CH_Gas_Station.Config.NotificationTime = 10 -- How long will notifications last?
  8. CH_Gas_Station.Config.Font = "Outfit" -- Font used for the UI
  9. CH_Gas_Station.Config.FontLight = "Outfit Light" -- Font light used for the UI
  10.  
  11. CH_Gas_Station.Config.DistanceToGasStation = 40000 -- How far away from the gas station can the player move with the filler pistol before loosing it?
  12. CH_Gas_Station.Config.DistanceToVehicle = 10000 -- How far away from the vehicle can the player be when tanking?
  13.  
  14. --[[
  15.     Gas Station Attendant System
  16. --]]
  17. CH_Gas_Station.EnableGasStationAttendantJob = true -- Should we enable the gas station attendant job system?
  18.  
  19. CH_Gas_Station.AttendantBossJobs = { -- These jobs will receive a % everytime someone pays for fuel.
  20.     ["Gangster"] = true,
  21. }
  22.  
  23. CH_Gas_Station.AttendantJobs = { -- These jobs will receive a % everytime THEY fill a vehicle for someone.
  24.     ["Gas Station Attendant"] = true,
  25. }
  26.  
  27. CH_Gas_Station.AttendantBossPay = 10 -- Give the bosses a % of the fuel price EVERY TIME someone fuels.
  28.  
  29. CH_Gas_Station.AttendantJobsPay = 30 -- Give the attendants a % of fuel when THEY fuel someones vehicle.
  30.  
  31. --[[
  32.     HUD
  33. --]]
  34. CH_Gas_Station.Config.HUDPosX = 0.83 -- Position of fuel pistol HUD
  35. CH_Gas_Station.Config.HUDPosY = 0.75 -- Position of fuel pistol HUD
  36.  
  37. --[[
  38.     Fuel Pistol
  39. --]]
  40. CH_Gas_Station.Config.FinishFuelingSwitchToPreviousWeapon = true -- If this is set, it will switch to the weapon they had when they started.
  41. CH_Gas_Station.Config.FinishFuelingWeaponSwitch = "" -- LEAVE EMPTY FOR NONE. Switch to this weapon after filling is completed (if above is false)
  42.  
  43. CH_Gas_Station.Config.RefillSpeed = 0.5 -- How fast is fuel being poured into the car? Like the interval per fill (holding left mouse)
  44. CH_Gas_Station.Config.MinimumMoneyToFuel = 10 -- How much money must the player minimum have to start fueling?
  45.  
  46. CH_Gas_Station.Config.AutoStopFullTank = true -- Should we automatically stop fueling when the tank is full?
  47. CH_Gas_Station.Config.AutoStopWrongFuelType = true -- Should we automatically stop if trying to fill with wrong fuel?
  48.  
  49. CH_Gas_Station.Config.CanFuelUnownedVehicles = true -- If players can fuel unowned vehicles or not? Set to false to disable fueling unowned vehicles
  50.  
  51. --[[
  52.     Fuel Pumps
  53. --]]
  54. CH_Gas_Station.Config.ResetScreenOnFinish = true -- Should the bought and price set to 0 once a customer is finished or just stay until a new customer comes?
  55. CH_Gas_Station.Config.ResetFuelTypeOnFinish = false -- If enabled it will switch back to petrol once a customer is finished.
  56.  
  57. CH_Gas_Station.Config.ShowScreenSummeryOnFinish = true -- Should we show "thanks for purchase" screen with fuel summery for a few seconds after fueling?
  58. CH_Gas_Station.Config.ShowScreenSummeryTime = 5 -- For how many seconds if enabled?
  59.  
  60. CH_Gas_Station.Config.PumpSoundElectric = "weapons/gauss/chargeloop.wav" -- Pump working sound for electricity
  61. CH_Gas_Station.Config.PumpSoundFuel = "vehicles/crane/crane_idle_loop3.wav" -- Pump working sound for petrol and diesel
  62. CH_Gas_Station.Config.PumpSoundPitch = 150 -- Pitch (aka speed) of loop sound.
  63.  
  64. CH_Gas_Station.Config.FuelPriceShuffleInterval = 600 -- How often should it go up or down? Requires you to enable PriceShuffle below for the fuel types
  65.  
  66. CH_Gas_Station.Config.Fuels = { -- Different types of fuel at the pumps. You cannot add more, but you can modify the values for the existing ones.
  67.     [0] = {
  68.         Name = "Petrol",
  69.         Unit = "liter",
  70.         Short = "L",
  71.         TankType = "Petrol Tank",
  72.         RefillAmount = 0.95, -- How much is filler per RefillSpeed second. It's the same as 0.95 liter per 0.5 second by default
  73.         Price = 2.33,
  74.         PriceShuffle = true, -- Should the price for this fuel be shuffled every FuelPriceShuffleInterval second?
  75.         ShuffleAmount = 0.04, -- If you have PriceShuffle enabled this will determine how much it goes up or down every FuelPriceShuffleInterval
  76.         MinPrice = 1.8, -- If you have PriceShuffle enabled this is the lowest point it can possibly drop to
  77.         MaxPrice = 3, -- If you have PriceShuffle enabled this is the highest point it can reach
  78.     },
  79.     [1] = {
  80.         Name = "Diesel",
  81.         Unit = "liter",
  82.         Short = "L",
  83.         TankType = "Diesel Tank",
  84.         RefillAmount = 0.95,
  85.         Price = 1.96,
  86.         PriceShuffle = true,
  87.         ShuffleAmount = 0.03,
  88.         MinPrice = 1.8,
  89.         MaxPrice = 3,
  90.     },
  91.     [2] = {
  92.         Name = "Electric",
  93.         Unit = "kilowatt",
  94.         Short = "kW",
  95.         TankType = "Battery",
  96.         RefillAmount = 0.85,
  97.         Price = 0.25,
  98.         PriceShuffle = true,
  99.         ShuffleAmount = 0.02,
  100.         MinPrice = 0.16,
  101.         MaxPrice = 0.8,
  102.     },
  103. }
  104.  
  105. --[[
  106.     Gas Stations
  107.    
  108.     Use console command "ch_gas_station_details" in-game while aiming at a gas pump to get it's details.
  109. --]]
  110. CH_Gas_Station.Config.AutoRemoveProps = true -- Should we REMOVE static gas station props?
  111. CH_Gas_Station.Config.AutoReplacePropsWithGasStation = true -- Should we spawn a functional gas station instead of the removed prop? You can also manually spawn them and save via the Q menu.
  112.  
  113. CH_Gas_Station.Config.OverwriteMapModelWithDefault = false -- If you enable this config, then it will spawn the default gas station model regardless of your MapToGasStationModel config.
  114. CH_Gas_Station.Config.DefaultGasStationModel = "models/props_wasteland/gaspump001a.mdl" -- Default gas station model if none is specified below for the map
  115.  
  116. CH_Gas_Station.Config.MapToGasStationModel = { -- Gas station models specifically for maps. This will automatically remove the prop and replace it with a functional gas station
  117.     ["rp_rockford_v2b"] = "models/statua/shell/shellpump1.mdl",
  118.     ["rp_evocity_v33x"] = "models/props_equipment/gas_pump.mdl",
  119.     ["rp_evocity2_v2p"] = "models/props_equipment/gas_pump.mdl",
  120.     ["rp_truenorth_v1a"] = "models/props_urban/gas_pump001.mdl",
  121. }
  122.  
  123. CH_Gas_Station.Config.GasStations = { -- Setup positions for different gas station models
  124.     ["models/props_wasteland/gaspump001a.mdl"] = { -- Default HL2 model
  125.         ScreenPos = Vector( 9.4, -13.9, 57 ),
  126.         ScreenAng = Angle( 0, 90, 90 ),
  127.         ScreenWide = 1100,
  128.         ScreenHeight = 750,
  129.         ScreenScale = 0.025,
  130.         PistolPos = Vector( -0.2, -14.6, 45.7 ),
  131.         PistolAng = Angle( -0.3, 92.3, -0.1 ),
  132.         RopeStart = Vector( 0.06, -17.77, 55.48 ),
  133.         RopeMid = Vector( 8, -19, 20 ),
  134.         RopeRear = Vector( 0, -20, 30 ),
  135.         RopeEnd = Vector( 0.06, -20.3, 37 ),
  136.         RopeColor = Color( 100, 100, 100, 255 ),
  137.     },
  138.     ["models/statua/shell/shellpump1.mdl"] = { -- rp_rockford_v2b model (shell v power model)
  139.         ScreenPos = Vector( -12, -2.4, 1.6 ),
  140.         ScreenAng = Angle( 0, 0, 80.5 ),
  141.         ScreenWide = 960,
  142.         ScreenHeight = 700,
  143.         ScreenScale = 0.025,
  144.         PistolPos = Vector( 27.5, 0, -28 ),
  145.         PistolAng = Angle( 0, 90, 0 ),
  146.         RopeStart = Vector( 32, 8.3, 0 ),
  147.         RopeMid = Vector( 38, -5, -40 ),
  148.         RopeRear = Vector( 32, -5, -45 ),
  149.         RopeEnd = Vector( 27.5, -5.8, -37.5 ),
  150.         RopeColor = Color( 100, 100, 100, 255 ),
  151.     },
  152.     ["models/props_equipment/gas_pump.mdl"] = { -- rp_evocity_v33x model
  153.         ScreenPos = Vector( -2.15, -27, 75.75 ),
  154.         ScreenAng = Angle( 0, 90, 90 ),
  155.         ScreenWide = 1350,
  156.         ScreenHeight = 700,
  157.         ScreenScale = 0.025,
  158.         PistolPos = Vector( -11, 30, 40 ),
  159.         PistolAng = Angle( 0, -90, 0 ),
  160.         RopeStart = Vector( -11, 30, 75 ),
  161.         RopeMid = Vector( -16, 36, 45 ),
  162.         RopeRear = Vector( -13, 40, 13 ),
  163.         RopeEnd = Vector( -11, 35.7, 31 ),
  164.         RopeColor = Color( 100, 100, 100, 255 ),
  165.     },
  166.     ["models/props_urban/gas_pump001.mdl"] = { -- rp_truenorth_v1a model
  167.         ScreenPos = Vector( -12, 18.3, 63.1 ),
  168.         ScreenAng = Angle( 0, -90, 90 ),
  169.         ScreenWide = 1450,
  170.         ScreenHeight = 895,
  171.         ScreenScale = 0.025,
  172.         PistolPos = Vector( 0, -16, 48 ),
  173.         PistolAng = Angle( 0, 90, 0 ),
  174.         RopeStart = Vector( 0, -17, 63 ),
  175.         RopeMid = Vector( 0, -25, 50 ),
  176.         RopeRear = Vector( 0, -25, 25 ),
  177.         RopeEnd = Vector( 0, -22, 38.5 ),
  178.         RopeColor = Color( 100, 100, 100, 255 ),
  179.     },
  180. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement