HexscriptsVersion 1.0Fuel
Configurations
Here you will get all configurations & open source files that are included within this script.
Config Files
Config = {}
Config.Locale = 'de'
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, -- Audi
[1] = 0.1, -- Billig
[2] = 0.1, -- Bmw
[3] = 0.1, -- Bugatti
[4] = 0.1, -- Ferrari
[5] = 0.1, -- Ford
[6] = 0.1, -- Go-Kart
[7] = 0.1, -- Lamborghini
[8] = 0.1, -- Mclaren
[9] = 0.1, -- Mercedes
[10] = 0.1, -- Motorrad
[11] = 0.1, -- Nissan
[12] = 0.1, -- Porsche
[13] = 0.1, -- Range Rover
[14] = 0.1, -- Volkswagen
[15] = 0.1, -- Helicopters
[16] = 0.1, -- Planes
[17] = 0.1, -- Service
[18] = 0.1, -- Emergency
[19] = 0.1, -- Military
[20] = 0.1, -- Commercial
[21] = 0.1, -- Trains
}
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,
}
Config.Locales = {
['de'] = {
['notify_title'] = 'Tanktelle',
['notify_pay'] = 'Du hast %s$ gezahlt!',
['vehicle_fuel'] = 'Dein Auto wurde betankt',
['open_menu'] = 'Drücke ~g~E~w~ um das Tankmenü zu öffnen.',
['no_money'] = '~r~Du hast kein Geld mehr, willst du mich bestehlen?',
['no_need'] = 'Du kannst keinen ~r~Treibstoff~w~ mehr tanken!',
['petrolcan'] = 'Drücke ~g~E~w~ um das Fahrzeug zu betanken!',
['petrolcan_buy'] = 'Drücke ~g~E~w~ um ein Kankiser für %s$ zu kaufen!',
['bought_petrolcan'] = 'Du hast dir ein Kanister gekauft!',
['already_have_petrolcan'] = '~r~Du hast bereits einen Kanister!',
['bought_petrolcan'] = 'Du hast dir ein Kanister gekauft!'
},
['en'] = {
['notify_title'] = 'Gasstation',
['notify_pay'] = 'You payed %s$!',
['vehicle_fuel'] = 'Your car has been refuelled!',
['open_menu'] = 'Press ~g~E~w~ to open the tank menu.',
['no_money'] = '~r~You don`t have any money on you, are you trying to steal from me?',
['no_need'] = 'You can`t fill up ~r~fuel~w~ anymore!',
['petrolcan'] = 'Press ~g~E~w~ to refuel the vehicle!',
['petrolcan_buy'] = 'Press ~g~E~w~ to buy a petrolcan for %s$!',
['already_have_petrolcan'] = '~r~You already have a canister!',
['bought_petrolcan'] = 'You bought a canister!',
}
}
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
end
function Notify(title, message, type, timeout)
TriggerEvent('hex_hud:notify', title, message, type, timeout)
end