Skip to content

Commit

Permalink
Merge pull request #125 from Giana/dev
Browse files Browse the repository at this point in the history
Disable low fuel alert for bicycles
  • Loading branch information
GhzGarage authored Apr 7, 2022
2 parents 4f9baaa + f2bca71 commit 9add272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ CreateThread(function()
while true do
if LocalPlayer.state.isLoggedIn then
local ped = PlayerPedId()
if IsPedInAnyVehicle(ped, false) then
if IsPedInAnyVehicle(ped, false) and not IsThisModelABicycle(GetEntityModel(GetVehiclePedIsIn(ped, false))) then
if exports['LegacyFuel']:GetFuel(GetVehiclePedIsIn(ped, false)) <= 20 then -- At 20% Fuel Left
if Menu.isLowFuelChecked then
TriggerServerEvent("InteractSound_SV:PlayOnSource", "pager", 0.10)
Expand Down

0 comments on commit 9add272

Please sign in to comment.