Paid Scripts
Below is where you can input the license key generated from https://license.simpledevelopments.org/
Config.LicenseKey = 'LICENSE-KEY'Below are the overall settings you can use to allow SimpleBanking to work with the system and the Jerry Can system.
Config.UseBankSystem = true -- Set to false to allow players to refuel for free.
Config.BankResourceName = 'SimpleBanking' -- If UseBankSystem is true, set the name of your bank resource here.
Config.JerryCan = {
Enabled = true,
WeaponHash = 'WEAPON_PETROLCAN', -- This is the weapon hash for the jerry can.
FuelCapacity = 25.0, -- How much fuel (in vehicle percentage points) a full can holds.
RefuelTime = 10000 -- Time in milliseconds to empty the can into a vehicle.
}Below is the existing blip system where you can configure the blips on the minimap for each gas station.
Config.Blips = {
Enabled = true, -- Set to false to disable all gas station blips.
-- 'all' = Show all blips on the map at all times.
-- 'proxy' = Only show blips when the player is nearby.
DisplayMode = 'all',
-- If DisplayMode is 'proxy', this is the distance in game units (meters) to show the blip.
ProxyDistance = 200.0,
-- Blip appearance settings
Sprite = 361, -- https://docs.fivem.net/docs/game-references/blips/
Color = 0, -- 0 = Green.
Scale = 0.8, -- The size of the blip on the map.
Name = "Gas Station",
}Below are the fuel consumption and price per gallon
Config.FuelConsumptionIdle = 0.01 -- Fuel consumed while the vehicle is stationary.
Config.FuelConsumptionDriving = 0.1 -- Fuel consumed while the vehicle is moving at normal speeds.
Config.FuelConsumptionSprinting = 0.25 -- Fuel consumed while the vehicle is moving above the SprintingSpeedThreshold.
Config.SprintingSpeedThreshold = 100.0 -- The speed (in MPH) at which 'Sprinting' consumption is triggered.
Config.PricePerGallon = 3.50 -- Set the price per unit of fuel.Here is where you can configure the logging system → Discord.
Config.DiscordLog = {
Enabled = true, -- Enable / Disable discord logging
WebhookURL = "YOUR_WEBHOOK_URL_HERE",
BotName = "SimpleFuel",
AvatarURL = "https://cdn.discordapp.com/icons/1066225230479101972/88ffeb74a180ed40f5d49278259cbb8e.png?size=4096",
Colors = {
VehicleRefuel = 3066993, -- Green
CanRefill = 15844367, -- Gold
JerryCanUse = 15105570 -- Orange
}
}Here are the Fuel Pump models as well as the locations where the blips would show for the gas station.
Config.PumpModels = { -- Model Codes for Gas Stations
'prop_gas_pump_1a',
'prop_gas_pump_1b',
'prop_gas_pump_1c',
'prop_gas_pump_1d',
'prop_gas_pump_old1',
'prop_gas_pump_old2',
'prop_gas_pump_old3',
'prop_gas_pump_1_a',
'prop_gas_pump_1_b',
'prop_vintage_pump'
}
Config.GasStations = { -- Coords for the pump icon on the minimap.
vector3(-725.5, -935.5, 20.5),
vector3(-70.5, -1760.6, 29.5),
vector3(1180.8, -330.3, 69.3),
vector3(-2096.3, -318.0, 13.0),
vector3(175.0, 6603.0, 31.5),
vector3(2005.1237, 3771.2754, 31.8524),
vector3(1787.0488, 3332.2771, 40.8916),
vector3(2683.3267, 3266.2627, 54.9136),
vector3(1686.1698, 4929.3296, 41.7502),
vector3(1208.3444, 2662.4993, 37.4827),
vector3(1039.0297, 2670.8743, 39.2250),
vector3(-93.6864, 6417.0723, 31.4811),
vector3(1701.1608, 6418.2812, 32.6399),
vector3(264.2366, 2606.3010, 44.9825),
vector3(-1437.1018, -275.5151, 46.2077),
vector3(-525.6598, -1212.9886, 18.1849),
vector3(261.8848, -1258.2544, 29.1429),
vector3(821.9261, -1027.8755, 26.2243),
vector3(2581.0100, 361.0682, 108.6427),
vector3(621.1725, 269.4788, 103.0894),
vector3(1208.0551, -1402.9174, 35.2242),
vector3(-1799.4019, 801.8688, 138.6503)
}