diff --git a/client.lua b/client.lua index 99a3017..c0bac47 100644 --- a/client.lua +++ b/client.lua @@ -1024,12 +1024,22 @@ CreateThread(function() end end) +function isElectric(vehicle) + local noBeeps = false + for k, v in pairs(Config.FuelBlacklist) do + if GetEntityModel(vehicle) == GetHashKey(v) then + noBeeps = true + end + end + return noBeeps +end + -- Low fuel CreateThread(function() while true do if LocalPlayer.state.isLoggedIn then local ped = PlayerPedId() - if IsPedInAnyVehicle(ped, false) and not IsThisModelABicycle(GetEntityModel(GetVehiclePedIsIn(ped, false))) then + if IsPedInAnyVehicle(ped, false) and not IsThisModelABicycle(GetEntityModel(GetVehiclePedIsIn(ped, false))) and not isElectric(GetVehiclePedIsIn(ped, false)) then if exports[Config.FuelScript]:GetFuel(GetVehiclePedIsIn(ped, false)) <= 20 then -- At 20% Fuel Left if Menu.isLowFuelChecked then TriggerServerEvent("InteractSound_SV:PlayOnSource", "pager", 0.10) diff --git a/config.lua b/config.lua index aabb170..da179ff 100644 --- a/config.lua +++ b/config.lua @@ -117,3 +117,25 @@ Config.EffectInterval = { timeout = math.random(15000, 20000) } } + +Config.FuelBlacklist = { + "surge", + "iwagen", + "voltic", + "voltic2", + "raiden", + "cyclone", + "tezeract", + "neon", + "omnisegt", + "iwagen", + "caddy", + "caddy2", + "caddy3", + "airtug", + "rcbandito", + "imorgon", + "dilettante", + "khamelion", + "wheelchair", +}