CONFIGURATION FILE
Config = {}
-- Main Settings
-- Framework Selection: Choose between 'qb' for QB-Core or 'esx' for ESX
Config.Framework = 'qb'
-- Engine Settings
Config.Engine = {
keepEngineOnWhenExiting = true, -- Whether the engine stays on when exiting the vehicle
restrictToEmergencyVehicles = false, -- Whether this setting is only for emergency vehicles
keepDoorOpenWhenExiting = true, -- Whether the door stays open when exiting the vehicle
engineExplosionChance = 0.5, -- The chance of an explosion when refueling with the engine on (0.0 - 1.0)
}
Config.TextUI = {
enabled = true, --- false = DrawText enable = ox_lib TextUI
type = "ox_lib",
position = "right-center", -- Available positions: right-center, left-center, top-center, bottom-center
style = {
borderRadius = 5,
backgroundColor = '#141517',
color = 'white',
borderColor = '#1f1f1f',
padding = '0.8vh'
}
}
Config.NPCSettings = {
model = "s_m_m_gaffer_01", -- NPC model
scenario = "WORLD_HUMAN_CLIPBOARD", -- NPC animation
settings = {
invincible = true,
freeze = true,
ignore = true
}
}
-- Fuel System Exports
Config.FuelExports = {
["GetFuel"] = function(vehicle)
return exports["janiel-fuelstations"]:GetFuel(vehicle)
end,
["SetFuel"] = function(vehicle, fuel)
return exports["janiel-fuelstations"]:SetFuel(vehicle, fuel)
end
}
-- Notification System Configuration
Config.NotifySystem = {
type = "default", -- Available options: "default" (framework's default), "okoknotify", "mythic", or "custom"
}
-- Vehicle Key System Configuration
Config.VehicleKeys = {
enabled = true, -- Enable/disable the vehicle key system
type = "qb", -- Choose between: qb, wasabi, cd_garage, or custom
-- Vehicle key events for different frameworks
-- β οΈ If using custom type, replace "your:custom:event" with your own event name
events = {
qb = "vehiclekeys:client:SetOwner", -- Default event for QB-Core
wasabi = "wasabi_carlock:giveKeys", -- Default event for Wasabi
cd_garage = "cd_garage:GiveKeys", -- Default event for CD_Garage
custom = "your:custom:event" -- Replace with your custom event (e.g., "myscript:giveKeys")
}
}
-- Price Settings
Config.DefaultPrice = 1.5 -- Default fuel price per liter
Config.MinPrice = 1.5 -- Minimum allowed fuel price
Config.MaxPrice = 5.0 -- Maximum allowed fuel price
Config.MaxFuelCapacity = 1000 -- Maximum fuel capacity per purchase
-- Capacity Upgrade Prices
-- Define prices for different capacity upgrades
Config.CapacityUpgrades = {
[250] = 25000, -- 250L capacity costs $25,000
[500] = 45000, -- 500L capacity costs $45,000
[750] = 65000, -- 750L capacity costs $65,000
[1000] = 85000 -- 1000L capacity costs $85,000
}
-- Fuel Center Configuration
-- Central fuel station settings
Config.FuelCenter = {
Name = "Fuel Center", -- Name of the central fuel station
Coords = vector3(2797.08, 1571.00, 24.53), -- Location coordinates
Blip = 361, -- Blip sprite ID
BlipColor = {r = 0, g = 255, b = 0, a = 255}, -- Blip color (RGB)
BlipScale = 0.8, -- Size of the blip on the map
}
-- Vehicle Configurations
-- Define available vehicles for fuel transportation
Config.Vehicles = {
["Rumpo"] = {
Name = "Rumpo", -- Display name
Price = 50000, -- Purchase price
Capacity = 1000, -- Fuel capacity in liters
imgName = "rumpo.png", -- Image file in ui/assets/vehicle
carHash = "rumpo", -- Game vehicle hash
},
["Youga"] = {
Name = "Youga",
Price = 75000,
Capacity = 2000,
imgName = "youga.png",
carHash = "youga",
},
["Boxville"] = {
Name = "Boxville",
Price = 100000,
Capacity = 3000,
imgName = "boxville2.png",
carHash = "boxville2",
},
["Mule"] = {
Name = "Mule",
Price = 125000,
Capacity = 4000,
imgName = "mule.png",
carHash = "mule3",
},
["Pounder"] = {
Name = "Pounder",
Price = 150000,
Capacity = 5000,
imgName = "pounder.png",
carHash = "pounder",
},
["Pounder Custom"] = {
Name = "Pounder Custom",
Price = 200000,
Capacity = 7500,
imgName = "pounder2.png",
carHash = "pounder2",
},
}
-- Pompa ve YakΔ±t AyarlarΔ±
Config.PumpProps = {
"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.PumpModels = {
[-2007231801] = true,
[1339433404] = true,
[1694452750] = true,
[1933174915] = true,
[-462817101] = true,
[-469694731] = true,
[-164877493] = true
}
Config.FuelDecor = "_FUEL_LEVEL"
Config.DisableKeys = {0, 22, 23, 24, 29, 30, 31, 37, 44, 56, 82, 140, 166, 167, 168, 170, 288, 289, 311, 323}
Config.EnableHUD = true
-- Araç Sınıfları ve Yakıt Kullanımı
Config.Classes = {
[0] = 1.0, -- Compacts
[1] = 1.0, -- Sedans
[2] = 1.0, -- SUVs
[3] = 1.0, -- Coupes
[4] = 1.0, -- Muscle
[5] = 1.0, -- Sports Classics
[6] = 1.0, -- Sports
[7] = 1.0, -- Super
[8] = 1.0, -- Motorcycles
[9] = 1.0, -- Off-road
[10] = 1.0, -- Industrial
[11] = 1.0, -- Utility
[12] = 1.0, -- Vans
[13] = 0.0, -- Cycles
[14] = 1.0, -- Boats
[15] = 1.0, -- Helicopters
[16] = 1.0, -- Planes
[17] = 1.0, -- Service
[18] = 1.0, -- Emergency
[19] = 1.0, -- Military
[20] = 1.0, -- Commercial
[21] = 1.0 -- Trains
}
Config.FuelUsage = {
[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
}
-- Messages Configuration
Config.Messages = {
-- Station Management
["max_stations"] = "You can't own more than 4 stations!",
["station_bought"] = "You have successfully purchased the station!",
["station_sold"] = "You have successfully sold the station",
["station_owned"] = "This station is already owned!",
["not_owner"] = "You are not the owner of this station!",
["station_not_found"] = "Station not found!",
["access_denied"] = "Access denied!",
["insufficient_funds"] = "You don't have enough money!",
["warning_message"] = "Refueling while the engine is running is dangerous!",
-- Vehicle Management
["vehicle_bought"] = "Vehicle purchased successfully!",
["vehicle_sold"] = "Vehicle sold successfully",
["vehicle_already_owned"] = "You already own this vehicle!",
["vehicle_create_failed"] = "Failed to create vehicle!",
["vehicle_keys_given"] = "Vehicle keys received!",
["vehicle_fueled"] = "Vehicle has been refueled!",
["vehicle_not_found"] = "Vehicle not found",
-- Fuel Management
["fuel_bought"] = "Fuel purchased successfully",
["station_out_of_fuel"] = "The station is out of fuel",
["not_enough_money"] = "You don't have enough money",
["tank_full"] = "The tank is full",
-- Order Management
["order_created"] = "Order created successfully",
["order_completed"] = "Order completed successfully!",
["order_not_found"] = "Order not found!",
["active_order"] = "You already have an active order!",
["new_order"] = "New order received",
["order_accepted"] = "Order accepted successfully",
["order_cancelled"] = "Order cancelled",
-- Employee Management
["invite_received"] = "You received an invitation from %s to work at %s",
["invite_sent"] = "Invite sent to ID: %s",
["already_employee"] = "This person is already an employee",
["employee_fired"] = "Employee fired successfully",
["employee_fired_success"] = "Employee fired successfully!",
["not_employee"] = "This person is not an employee!",
["joined_station"] = "You have joined the station",
["invite_rejected"] = "Invitation rejected",
-- Price Management
["invalid_price"] = "Invalid price!",
["price_too_low"] = "Price cannot be lower than $%s!",
["price_too_high"] = "Price cannot be higher than $%s!",
["price_updated"] = "Price updated to $%s",
["enter_price"] = "Please enter a price",
["price_saved"] = "Price saved successfully",
-- Money Management
["money_withdrawn"] = "$%s withdrawn from station balance!",
["money_deposited"] = "$%s deposited to station balance!",
-- Capacity Management
["invalid_capacity_selection"] = "Invalid capacity selection",
["capacity_upgraded"] = "Station capacity upgraded successfully",
["no_space"] = "No available space to spawn vehicle!",
-- Station Name Management
["station_name_updated"] = "Station name updated successfully!",
["capacity_exceeded"] = "The fuel amount exceeds station capacity! Only maximum capacity will be added.",
}
-- DrawText Messages
Config.DrawText = {
["manage_station"] = "[E] Manage Station",
["buy_station"] = "[E] Purchase Station ($%s)",
["start_refueling"] = "[E] Start Refueling ($%s/L) \nFuel Level: %s%%",
["tank_full"] = "Tank is Full",
["cancel_refueling"] = "[E] Cancel Refueling \nFuel Level: %s%% \nTotal: $%s",
["refuel_vehicle"] = "Refuel Vehicle",
["refuel_vehicle_action"] = "[E] Refuel Vehicle",
["cancel_loading"] = "[E] Cancel Loading \nFuel: %s/%s",
["return_vehicle"] = "Return Vehicle",
["return_vehicle_action"] = "[E] Return Vehicle"
}
Config.Notify = function(message, title, type, length)
if Config.NotifySystem.type == "default" then
if Config.Framework == "qb" then
Framework.Functions.Notify(message, type, length)
else
Framework.ShowNotification(message)
end
elseif Config.NotifySystem.type == "okoknotify" then
exports['okokNotify']:Alert(title or "Fuel Station", message, length or 5000, type or 'info')
elseif Config.NotifySystem.type == "mythic" then
exports['mythic_notify']:DoHudText(type or 'inform', message, length or 5000)
elseif Config.NotifySystem.type == "custom" then
TriggerEvent("janiel_fuelstations:notify", message, type, length)
end
end
--stations
Config.Stations = {
[1] = {
id = 1,
Name = "Station 01",
Price = 10000,
Capacity = 1000,
DefaultPrice = 1.5,
StartFuel = 1000,
purchasedCapacities = {},
VehicleSpawnCoords = {
vector4(-337.1403, -1458.9626, 30.5612, 276.3359),
},
Coords = {
Blip = vector3(-319.2874, -1471.7256, 30.544),
Management = vector3(-341.2664, -1482.5524, 30.6676),
NPC = vector4(-341.2664, -1482.5524, 29.6676, 180.0),
}
},
[2] = {
id = 2,
Name = "Station 02",
Price = 5000,
Capacity = 1000,
DefaultPrice = 1.0,
StartFuel = 1000,
purchasedCapacities = {},
VehicleSpawnCoords = {
vector4(40.4147, 2796.9690, 57.8782, 144.1937),
vector4(42.1255, 2806.1023, 57.8782, 140.1179),
},
Coords = {
Blip = vector3(49.8012, 2779.3159, 58.0431),
Management = vector3(46.2446, 2788.7515, 57.8783),
NPC = vector4(46.2446, 2788.7515, 57.8783, 180.0),
}
},
[3] = {
id = 3,
Name = "Station 03",
Price = 4000,
Capacity = 1000,
DefaultPrice = 0.5,
StartFuel = 1000,
purchasedCapacities = {},
VehicleSpawnCoords = {
vector4(244.2273, 2599.6851, 45.1113, 278.4167),
vector4(256.3364, 2599.5903, 44.8030, 280.0932),
},
Coords = {
Blip = vector3(264.0502, 2606.4165, 44.9830),
Management = vector3(265.8952, 2598.3223, 44.8352),
NPC = vector4(265.8952, 2598.3223, 44.8352, 180.0),
}
},
[4] = {
id = 4,
Name = "Station 04",
Price = 8000,
Capacity = 1000,
DefaultPrice = 1.8,
StartFuel = 1000,
purchasedCapacities = {},
VehicleSpawnCoords = {
vector4(1022.7210, 2663.6482, 39.5511, 268.8333),
vector4(1022.6290, 2667.2991, 39.5511, 272.6640),
vector4(1022.5136, 2671.5815, 39.5306, 291.6922),
},
Coords = {
Blip = vector3(1040.2164, 2671.7681, 39.5510),
Management = vector3(1039.4434, 2664.7192, 39.5511),
NPC = vector4(1039.4434, 2664.7192, 39.5511, 180.0),
}
},
[5] = {
id = 5,
Name = "Station 05",
Price = 10000,
Capacity = 1000,
DefaultPrice = 1.5,
startfuel = 1000,
purchasedCapacities = {},
VehicleSpawnCoords = {
vector4(2665.4360, 3256.9802, 55.2405, 151.1246),
vector4(2662.0667, 3258.3257, 55.2405, 150.0652),
vector4(2658.0532, 3260.2200, 55.2405, 150.1353),
},
Coords = {
Blip = vector3(2679.1819, 3264.0283, 55.4093),
Management = vector3(2674.3342, 3266.7122, 55.2406),
NPC = vector4(2674.3342, 3266.7122, 55.2406, 180.0),
}
},
[6] = {
id = 6,
Name = "Station 06",
Price = 10000,
Capacity = 1000,
DefaultPrice = 1.5,
startfuel = 1000,
purchasedCapacities = {},
VehicleSpawnCoords = {
vector4(1981.9819, 3783.8269, 32.1808, 211.8671),
vector4(1978.5818, 3777.5801, 32.1814, 214.5740),
},
Coords = {
Blip = vector3(2004.8384, 3774.1194, 32.4039),
Management = vector3(2002.1727, 3779.5449, 32.1808),
NPC = vector4(2002.1727, 3779.5449, 32.1808, 180.0),
}
},
[7] = {
id = 7,
Name = "Station 07",
Price = 12000,
Capacity = 1000,
DefaultPrice = 1.5,
startfuel = 1000,
purchasedCapacities = {},
VehicleSpawnCoords = {
vector4(1697.2673, 4914.9067, 42.0781, 57.4835),
vector4(1688.2684, 4915.4678, 42.0782, 53.0116),
vector4(1678.3765, 4922.0869, 42.0674, 16.2448),
},
Coords = {
Blip = vector3(1687.3427, 4929.8501, 42.0781),
Management = vector3(1702.0839, 4936.9478, 42.0781),
NPC = vector4(1702.0839, 4936.9478, 42.0781, 180.0),
}
},
[8] = {
id = 8,
Name = "Station 08",
Price = 10000,
Capacity = 1000,
DefaultPrice = 1.5,
startfuel = 1000,
purchasedCapacities = {},
VehicleSpawnCoords = {
vector4(1720.2991, 6424.4253, 33.4389, 151.1981),
vector4(1718.4543, 6408.0132, 33.8638, 153.3856),
},
Coords = {
Blip = vector3(1702.2002, 6417.8179, 32.640),
Management = vector3(1705.5975, 6424.9966, 32.6354),
NPC = vector4(1705.5975, 6424.9966, 32.6354, 180.0),
}
},
[9] = {
id = 9,
Name = "Station 09",
Price = 20000,
Capacity = 1000,
DefaultPrice = 1.5,
startfuel = 1000,
purchasedCapacities = {},
VehicleSpawnCoords = {
vector4(150.6823, 6611.8750, 31.8594, 175.6757),
vector4(145.6441, 6600.3491, 31.8469, 175.2391),
vector4(145.5245, 6612.2930, 31.8216, 356.7521),
vector4(156.0598, 6606.1265, 31.8747, 178.0500),
},
Coords = {
Blip = vector3(180.4696, 6602.8564, 31.8640),
Management = vector3(162.2781, 6636.3232, 31.5586),
NPC = vector4(162.2781, 6636.3232, 31.5586, 180.0),
}
},
[10] = {
id = 10,
Name = "Station 10",
Price = 30000,
Capacity = 1000,
DefaultPrice = 1.5,
startfuel = 1000,
purchasedCapacities = {},
VehicleSpawnCoords = {
vector4(-2535.3533, 2342.6096, 33.0599, 209.1102),
vector4(-2535.3533, 2342.6096, 33.0599, 209.1102),
vector4(-2523.0520, 2335.8977, 33.0599, 212.2273),
vector4(-2528.9736, 2333.3296, 33.0599, 212.9529),
},
Coords = {
Blip = vector3(-2555.3298, 2330.9797, 33.0600),
Management = vector3(-2544.1426, 2316.0566, 33.2161),
NPC = vector4(-2544.1426, 2316.0566, 33.2161, 180.0),
}
},
[11] = {
id = 11,
Name = "Station 11",
Price = 20000,
Capacity = 1000,
DefaultPrice = 1.5,
startfuel = 1000,
purchasedCapacities = {},
VehicleSpawnCoords = {
vector4(-1407.8317, -274.7151, 46.3823, 130.3547),
vector4(-1416.5688, -282.1089, 46.2396, 130.7797),
},
Coords = {
Blip = vector3(-1436.4069, -274.8047, 46.2077),
Management = vector3(-1428.7955, -269.0994, 46.2077),
NPC = vector4(-1428.7955, -269.0994, 46.2077, 180.0),
}
},
[12] = {
id = 12,
Name = "Station 12",
Price = 20000,
Capacity = 1000,
DefaultPrice = 1.5,
startfuel = 1000,
purchasedCapacities = {},
VehicleSpawnCoords = {
vector4(-2080.0576, -330.7923, 13.1192, 82.2907),
vector4(-2078.9001, -323.4716, 13.1268, 86.4141),
},
Coords = {
Blip = vector3(-2093.2839, -320.9021, 13.0272),
Management = vector3(-2073.3540, -327.1919, 13.3096),
NPC = vector4(-2073.3540, -327.1919, 13.3096, 180.0),
}
},
[13] = {
id = 13,
Name = "Station 13",
Price = 20000,
Capacity = 1000,
DefaultPrice = 1.5,
startfuel = 1000,
purchasedCapacities = {},
VehicleSpawnCoords = {
vector4(-710.8945, -921.9550, 19.0139, 179.5949),
vector4(-714.9492, -922.0057, 19.0139, 179.5162),
vector4(-718.5616, -921.9171, 19.0139, 179.2050),
},
Coords = {
Blip = vector3(-720.3494, -934.8868, 19.0170),
Management = vector3(-702.9544, -916.9776, 19.2140),
NPC = vector4(-702.9544, -916.9776, 19.2140, 180.0),
}
},
[14] = {
id = 14,
Name = "Station 14",
Price = 20000,
Capacity = 1000,
DefaultPrice = 1.5,
startfuel = 1000,
purchasedCapacities = {},
VehicleSpawnCoords = {
vector4(-517.8981, -1196.5121, 19.1797, 296.1675),
vector4(-511.1763, -1202.8373, 19.1998, 339.8442),
},
Coords = {
Blip = vector3(-526.0135, -1211.0129, 18.1808),
Management = vector3(-531.4419, -1221.1511, 18.4535),
NPC = vector4(-531.4419, -1221.1511, 18.4535, 180.0),
}
},
[15] = {
id = 15,
Name = "Station 15",
Price = 20000,
Capacity = 1000,
DefaultPrice = 1.5,
startfuel = 1000,
purchasedCapacities = {},
VehicleSpawnCoords = {
vector4(-61.4785, -1744.7173, 29.3383, 50.0005),
vector4(-59.0142, -1741.8547, 29.3304, 48.7892),
},
Coords = {
Blip = vector3(-71.1301, -1761.5087, 29.6555),
Management = vector3(-57.6993, -1754.7046, 29.2029),
NPC = vector4(-57.6993, -1754.7046, 29.2029, 180.0),
}
},
[16] = {
id = 16,
Name = "Station 16",
Price = 20000,
Capacity = 1000,
DefaultPrice = 1.5,
startfuel = 1000,
purchasedCapacities = {},
VehicleSpawnCoords = {
vector4(282.1235, -1274.2532, 29.2444, 87.4304),
vector4(282.1993, -1268.7278, 29.2344, 90.6920),
vector4(282.2623, -1262.7427, 29.2351, 86.0700),
},
Coords = {
Blip = vector3(268.9026, -1261.0104, 29.1429),
Management = vector3(288.2523, -1266.8630, 29.4407),
NPC = vector4(288.2523, -1266.8630, 29.4407, 180.0),
}
},
[17] = {
id = 17,
Name = "Station 17",
Price = 20000,
Capacity = 1000,
DefaultPrice = 1.5,
startfuel = 1000,
purchasedCapacities = {},
VehicleSpawnCoords = {
vector4(808.6020, -1043.3870, 26.5604, 94.5485),
},
Coords = {
Blip = vector3(819.6274, -1029.1078, 26.4043),
Management = vector3(818.3270, -1040.1888, 26.7507),
NPC = vector4(818.3270, -1040.1888, 26.7507, 180.0),
}
},
[18] = {
id = 18,
Name = "Station 18",
Price = 20000,
Capacity = 1000,
DefaultPrice = 1.5,
startfuel = 1000,
purchasedCapacities = {},
VehicleSpawnCoords = {
vector4(2566.4089, 392.3275, 108.4625, 357.4342),
vector4(2565.5212, 378.7365, 108.4632, 176.8271),
},
Coords = {
Blip = vector3(2581.3167, 362.0280, 108.4641),
Management = vector3(2560.0452, 373.4524, 108.6208),
NPC = vector4(2560.0452, 373.4524, 108.6208, 180.0),
}
}
}
Config.ProgressBar = {
style = {
backgroundColor = 'rgba(0, 0, 0, 0.4)',
color = '#45B4DE',
borderRadius = 2,
boxShadow = '0 2px 5px rgba(0, 0, 0, 0.3)',
height = '2.5vh',
position = 'bottom',
label = {
color = '#ffffff',
font = 'Inter',
fontSize = '1.2vh',
fontWeight = '500'
}
}
}
Last updated