-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.lua
216 lines (189 loc) · 8.52 KB
/
config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
Config = {}
----------------------------------------------------------------
Config.Locale = 'de'
Config.Debug = true
Config.VersionChecker = true
----------------------------------------------------------------
-- !!! This function is clientside AND serverside !!!
Config.Notification = function(source, message, typ)
if IsDuplicityVersion() then -- serverside
MSK.Notification(source, 'Fuel Station', message, typ, 5000)
else -- clientside
MSK.Notification('Fuel Station', message, typ, 5000)
end
end
----------------------------------------------------------------
Config.Commands = {
allowedGroups = {'superadmin', 'admin'},
setVehicleFuel = 'setFuel', -- /setFuel 50 // You have to sit in a vehicle
repairVehicle = 'repairVehicle', -- Repair the vehicle if it was refueled with the wrong fuel // You have to sit in a vehicle
}
Config.FuelStationBlips = {
enable = true, -- Set false to disable blips
id = 361,
color = 6,
scale = 0.8,
label = Translate('fuel_station_blip'),
}
-- See FiveM Native Reference (SetFuelConsumptionRateMultiplier - https://docs.fivem.net/natives/?_0x845F3E5C)
Config.FuelConsumptionRateMultiplier = 2.0 -- Sets fuel consumption rate multiplier for all vehicles operated by a player.
Config.Refill = {
tick = 250, -- Fuel Tick Rate (every 250 miliseconds)
value = 0.50, -- Fuel Refill Value (adds 0.50% every refillTick miliseconds)
price = 5, -- Price per Tick Rate (costs $5 every 250 miliseconds)
}
Config.Petrolcan = {
enable = true,
price = 1000,
refillPrice = 800,
refillDuration = 5, -- duration to refill the petrolcan // in seconds
durabilityTick = 1.3, -- durability loss per Fuel Tick Rate
}
----------------------------------------------------------------
Config.FuelStationModels = {
-- Use `` and NOT "" and NOT ''
`prop_gas_pump_old2`,
`prop_gas_pump_1a`,
`prop_vintage_pump`,
`prop_gas_pump_old3`,
`prop_gas_pump_1c`,
`prop_gas_pump_1b`,
`prop_gas_pump_1d`,
}
Config.DefaultFuelType = 'gas'
Config.WrongFuel = {
allow = true, -- Allow players to fill up with the wrong fuel
liter = 15, -- Engine Failure if more than 15 liters were refueled with the wrong fuel
}
Config.FuelStationTypes = {
-- Use `` and NOT "" and NOT ''
--[[
Fuel Types:
* 'gas'
* 'diesel'
* 'kerosin' -> For airplanes and helicopters
* 'electric' -> For electric vehicles
]]
-- Fuel Stations
[`prop_gas_pump_old2`] = {'gas', 'diesel', 'kerosin'},
[`prop_gas_pump_1a`] = {'gas', 'diesel', 'kerosin'},
[`prop_vintage_pump`] = {'gas', 'diesel', 'kerosin'},
[`prop_gas_pump_old3`] = {'gas', 'diesel', 'kerosin'},
[`prop_gas_pump_1c`] = {'gas', 'diesel', 'kerosin'},
[`prop_gas_pump_1b`] = {'gas', 'diesel', 'kerosin'},
[`prop_gas_pump_1d`] = {'gas', 'diesel', 'kerosin'},
-- If you have a custom fuel station for electric vehicles then add them here
-- [`model`] = {'electric'}
-- Vehicles
[`utillitruck2`] = {'gas', 'diesel', 'kerosin', 'electric'},
-- Trailer
[`armytanker`] = {'gas', 'diesel', 'kerosin'},
[`tanker`] = {'gas', 'diesel', 'kerosin'},
[`tanker2`] = {'gas', 'diesel', 'kerosin'},
-- Models: Fuel Tanks
[`prop_ind_deiseltank`] = {'kerosin'},
[`prop_tanktrailer_01a`] = {'kerosin'},
[`prop_air_fueltrail1`] = {'kerosin'},
[`prop_air_fueltrail2`] = {'kerosin'},
-- Models: Gas Tanks
[`prop_gas_tank_01a`] = {'kerosin'},
[`prop_gas_tank_02a`] = {'kerosin'},
[`prop_gas_tank_02b`] = {'kerosin'},
[`prop_gas_tank_04a`] = {'kerosin'},
[`sf_prop_sf_gas_tank_01a`] = {'kerosin'},
-- Models: Electric Generator
[`prop_generator_01a`] = {'electric'},
[`prop_generator_02a`] = {'electric'},
[`prop_generator_03a`] = {'electric'},
[`ch_chint04_tunnelgenerator`] = {'electric'},
[`xm3_int3_int02_generator_01`] = {'electric'},
[`gr_int02_generator_01`] = {'electric'},
[`ch_prop_ch_generator_01a`] = {'electric'},
[`m23_1_prop_m31_generator_01a`] = {'electric'},
[`prop_generator_04`] = {'electric'},
[`prop_air_generator_01`] = {'electric'},
[`sf_prop_sf_air_generator_01`] = {'electric'},
}
-- Spawns the given Fuel Pump on the given coords
Config.CustomFuelStations = {
{model = `prop_gas_pump_1c`, coords = vector4(166.44, 6461.82, 31.2, 176.24), showBlip = false}, -- Paleto Bay near 3021
{model = `prop_ind_deiseltank`, coords = vector4(1761.61, 3228.0, 42.52, 232.38), showBlip = true}, -- Grand Senora Desert
{model = `prop_generator_01a`, coords = vector4(1787.35, 3327.75, 41.4, 303.47), showBlip = false}, -- Grand Senora Desert
{model = `prop_ind_deiseltank`, coords = vector4(-973.09, -3411.08, 13.84, 237.21), showBlip = true}, -- LS International Airport
{model = `prop_ind_deiseltank`, coords = vector4(-1017.03, -3385.64, 13.84, 237.21), showBlip = true}, -- LS International Airport
}
----------------------------------------------------------------
-- Vehicle that acts as a fuel station
Config.FuelVehicles = {
-- Vehicles
`utillitruck2`, -- https://forge.plebmasters.de/vehicles/MjUzNDg2MjEwNg
-- Trailer
`armytanker`, -- https://forge.plebmasters.de/vehicles/MjkwNDY4NzUwMQ
`tanker`, -- https://forge.plebmasters.de/vehicles/MjE2MTI0MjU0OQ
`tanker2`, -- https://forge.plebmasters.de/vehicles/MzMwOTk1NzIxNg
}
-- Models/Props that acts as a fuel station
Config.FuelModels = {
-- Use `` and NOT "" and NOT ''
-- Fuel Tanks
`prop_ind_deiseltank`, -- https://forge.plebmasters.de/objects/prop_ind_deiseltank
`prop_tanktrailer_01a`, -- https://forge.plebmasters.de/objects/prop_tanktrailer_01a
`prop_air_fueltrail1`, -- https://forge.plebmasters.de/objects/prop_air_fueltrail1
`prop_air_fueltrail2`, -- https://forge.plebmasters.de/objects/prop_air_fueltrail2
-- Gas Tanks
`prop_gas_tank_01a`, -- https://forge.plebmasters.de/objects/prop_gas_tank_01a
`prop_gas_tank_02a`, -- https://forge.plebmasters.de/objects/prop_gas_tank_02a
`prop_gas_tank_02b`, -- https://forge.plebmasters.de/objects/prop_gas_tank_02b
`prop_gas_tank_04a`, -- https://forge.plebmasters.de/objects/prop_gas_tank_04a
`sf_prop_sf_gas_tank_01a`, -- https://forge.plebmasters.de/objects/sf_prop_sf_gas_tank_01a
-- Electric Generators
`prop_generator_01a`, -- https://forge.plebmasters.de/objects/prop_generator_01a
`prop_generator_02a`, -- https://forge.plebmasters.de/objects/prop_generator_02a
`prop_generator_03a`, -- https://forge.plebmasters.de/objects/prop_generator_03a
`ch_chint04_tunnelgenerator`, -- https://forge.plebmasters.de/objects/ch_chint04_tunnelgenerator
`xm3_int3_int02_generator_01`, -- https://forge.plebmasters.de/objects/xm3_int3_int02_generator_01
`gr_int02_generator_01`, -- https://forge.plebmasters.de/objects/gr_int02_generator_01
`ch_prop_ch_generator_01a`, -- https://forge.plebmasters.de/objects/ch_prop_ch_generator_01a
`m23_1_prop_m31_generator_01a`, -- https://forge.plebmasters.de/objects/m23_1_prop_m31_generator_01a
`prop_generator_04`, -- https://forge.plebmasters.de/objects/prop_generator_04
`prop_air_generator_01`, -- https://forge.plebmasters.de/objects/prop_air_generator_01
`sf_prop_sf_air_generator_01`, -- https://forge.plebmasters.de/objects/sf_prop_sf_air_generator_01
}
----------------------------------------------------------------
-- This is only for Blips
Config.FuelStations = {
-- Los Santos
vector3(-71.28, -1761.16, 29.48),
vector3(264.74, -1260.98, 29.18),
vector3(1208.66, -1402.64, 35.22),
vector3(818.83, -1029.89, 26.17),
vector3(1181.27, -329.57, 69.18),
vector3(621.07, 269.52, 103.0),
vector3(-1437.58, -276.38, 46.21),
vector3(-2096.6, -318.15, 13.02),
vector3(-1799.03, 803.11, 138.4),
vector3(-524.84, -1211.02, 18.18),
vector3(2581.56, 361.65, 108.46),
vector3(-319.84, -1471.77, 30.55),
vector3(175.31, -1561.73, 29.26),
vector3(-723.72, -935.51, 19.21),
-- Blaine County
vector3(-2555.31, 2334.01, 33.06),
vector3(49.69, 2778.33, 57.88),
vector3(264.15, 2607.05, 44.95),
vector3(1207.56, 2660.2, 37.81),
vector3(2538.0, 2593.83, 37.94),
vector3(2680.01, 3265.0, 55.24),
vector3(2005.07, 3774.33, 32.18),
vector3(1688.42, 4930.85, 42.08),
vector3(1039.34, 2671.78, 39.55),
vector3(1785.58, 3330.47, 41.38),
-- Paleto Bay
vector3(1702.79, 6416.86, 33.64),
vector3(179.94, 6602.6, 31.85),
vector3(-93.98, 6420.1, 31.48),
}
----------------------------------------------------------------
exports('Config', function()
return Config
end)