From de735fa9acf865b7362e9487682abcc1c7d8a000 Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:43:43 +0100 Subject: [PATCH] fix: variable HasHarnass is never set --- .../resources/[esx_addons]/esx-radialmenu/client/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server-data/resources/[esx_addons]/esx-radialmenu/client/main.lua b/server-data/resources/[esx_addons]/esx-radialmenu/client/main.lua index 69682d5e..cc8b0b1e 100644 --- a/server-data/resources/[esx_addons]/esx-radialmenu/client/main.lua +++ b/server-data/resources/[esx_addons]/esx-radialmenu/client/main.lua @@ -340,7 +340,7 @@ RegisterNetEvent("esx-radialmenu:client:ChangeSeat", function(data) local Veh = GetVehiclePedIsIn(PlayerPedId, false) local IsSeatFree = IsVehicleSeatFree(Veh, data.id) local speed = GetEntitySpeed(Veh) - local HasHarnass + local HasHarnass = (PlayerPedId) and IsPedInAnyVehicle(PlayerPedId, false) if not HasHarnass then local kmh = speed * 3.6 if IsSeatFree then