HexscriptsVersion 3.0Fuel
Configurations
Here you will get all configurations & open source files that are included within this script.
Config Files
Config = {}
Config.Debug = false -- Set to true to enable debug messages in the console
Config.Locale = 'automatic' -- automatic, en, de, es, fr, it, nl, pl, pt, tr, ar
Config.Framework = 'automatic' -- automatic, esx, qbcore, standalone
Config.ServerName = 'HEXSCRIPTS'
Config.Petrolcan = {
addToFuel = 20,
max = 80
}
Config.Stations = {
{
coords = vector3(49.41, 2778.79, 58.04),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(263.89, 2606.46, 44.98),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(1039.95, 2671.13, 39.54),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(1207.26, 2660.17, 37.89),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(2539.68, 2594.19, 37.94),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(2679.85, 3263.94, 55.24),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(2005.05, 3773.88, 32.40),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(1687.15, 4929.39, 42.07),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(1701.31, 6416.02, 32.76),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(179.85, 6602.83, 31.86),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(-94.46, 6419.59, 31.48),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(-2554.99, 2334.39, 33.07),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(-1800.37, 803.66, 138.65),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(-1437.62, -276.74, 46.20),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(-2096.24, -320.28, 13.16),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(-724.61, -935.16, 19.21),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(-526.01, -1211.01, 18.18),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(-70.21, -1761.79, 29.53),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(265.64, -1261.30, 29.29),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(819.65, -1028.84, 26.40),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(1208.95, -1402.56, 35.22),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(1181.38, -330.84, 69.31),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(620.84, 269.10, 103.08),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(2581.32, 362.03, 108.46),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(176.63, -1562.02, 29.26),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(-319.29, -1471.71, 30.54),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
{
coords = vector3(1784.32, 3330.55, 41.25),
blip = {
enabled = true,
sprite = 361,
scale = 0.5,
color = 64,
display = 4,
text = 'Tankstelle'
}
},
}
Config.DisableKeys = {0, 22, 23, 24, 29, 30, 31, 37, 44, 56, 82, 140, 166, 167, 168, 170, 288, 289, 311, 323}
Config.FuelDecor = "_FUEL_LEVEL"
Config.MinimumPrice = 100
Config.PetrolcanPrice = 100
Config.Price = 50
Config.CostMultiplier = 1
Config.PumpModels = {
[-2007231801] = true,
[1339433404] = true,
[1694452750] = true,
[1933174915] = true,
[-462817101] = true,
[-469694731] = true,
[-164877493] = true
}
Config.Blacklist = {
"swift2"
}
Config.Classes = {
[0] = 0.1,
[1] = 0.1,
[2] = 0.1,
[3] = 0.1,
[4] = 0.1,
[5] = 0.1,
[6] = 0.1,
[7] = 0.1,
[8] = 0.1,
[9] = 0.1,
[10] = 0.1,
[11] = 0.1,
[12] = 0.1,
[13] = 0.1,
[14] = 0.1,
[15] = 0.1,
[16] = 0.1,
[17] = 0.1,
[18] = 0.1,
[19] = 0.1,
[20] = 0.1,
[21] = 0.1,
}
Config.FuelUsage = {
[1.0] = 5.0,
[0.9] = 4.5,
[0.8] = 4.0,
[0.7] = 3.5,
[0.6] = 3.0,
[0.5] = 2.0,
[0.4] = 2.0,
[0.3] = 1.0,
[0.2] = 0.5,
[0.1] = 0.2,
[0.0] = 0.1,
}Client Open Source Files
if Config.Framework == 'automatic' then
if GetResourceState('es_extended') == 'started' then
Config.Framework = 'esx'
elseif GetResourceState('qb-core') == 'started' then
Config.Framework = 'qbcore'
else
Config.Framework = 'standalone'
end
end
function DrawHelpNotify(message)
if GetResourceState('hex_final_hud') == 'started' then
exports['hex_final_hud']:HelpNotify(message)
elseif GetResourceState('hex_2_hud') == 'started' then
exports['hex_2_hud']:HelpNotify(message)
elseif GetResourceState('hex_future_hud') == 'started' then
exports['hex_future_hud']:HelpNotify(message)
elseif GetResourceState('hex_1_hud') == 'started' then
exports['hex_1_hud']:HelpNotify(message)
elseif GetResourceState('hex_hud_prem') == 'started' then
exports['hex_hud_prem']:HelpNotify(message)
elseif GetResourceState('hex_4_hud') == 'started' then
exports['hex_4_hud']:HelpNotify(message)
else
SetTextComponentFormat('STRING')
AddTextComponentString(message)
DisplayHelpTextFromStringLabel(0, 0, 1, -1)
end
end
function Notify(title, message, notifyType, timeout)
if timeout == nil then timeout = 5000 end
if notifyType == nil then notifyType = 'info' end
if GetResourceState('hex_final_hud') == 'started' then
exports['hex_final_hud']:Notify(title, message, notifyType, timeout)
elseif GetResourceState('hex_2_hud') == 'started' then
exports['hex_2_hud']:Notify(title, message, notifyType, timeout)
elseif GetResourceState('hex_future_hud') == 'started' then
exports['hex_future_hud']:Notify(title, message, notifyType, timeout)
elseif GetResourceState('hex_1_hud') == 'started' then
exports['hex_1_hud']:Notify(title, message, notifyType, timeout)
elseif GetResourceState('hex_hud_prem') == 'started' then
exports['hex_hud_prem']:Notify(title, message, notifyType, timeout)
elseif GetResourceState('hex_hud') == 'started' then
exports['hex_hud']:Notify(title, message, notifyType, timeout)
elseif GetResourceState('hex_4_hud') == 'started' then
exports['hex_4_hud']:Notify(title, message, notifyType, timeout)
else
print(('Notify: %s, %s, %s, %s'):format(title, message, notifyType, timeout))
end
end
function DrawText3Ds(x, y, z, text)
local onScreen, _x, _y = World3dToScreen2d(x, y, z)
if onScreen then
SetTextScale(0.35, 0.35)
SetTextFont(4)
SetTextProportional(1)
SetTextColour(255, 255, 255, 215)
SetTextEntry("STRING")
SetTextCentre(1)
AddTextComponentString(text)
DrawText(_x, _y)
end
endServer Open Source Files
if Config.Framework == 'automatic' then
if GetResourceState('es_extended') == 'started' then
Config.Framework = 'esx'
elseif GetResourceState('qb-core') == 'started' then
Config.Framework = 'qbcore'
else
Config.Framework = 'standalone'
end
end