From 68397d55dae21e8809e1a19f2cdcb97d0e26dc72 Mon Sep 17 00:00:00 2001 From: Dan Date: Tue, 10 Dec 2019 00:26:50 +0000 Subject: [PATCH] Fixed radar UI opening in passenger seat --- cl_radar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_radar.lua b/cl_radar.lua index 1344aa2..e0acd99 100644 --- a/cl_radar.lua +++ b/cl_radar.lua @@ -1280,7 +1280,7 @@ function RADAR:RunDisplayValidationCheck() if ( ( ( PLY.veh == 0 or ( PLY.veh > 0 and not PLY.vehClassValid ) ) and self:GetDisplayState() and not self:GetDisplayHidden() ) or IsPauseMenuActive() and self:GetDisplayState() ) then self:SetDisplayHidden( true ) SendNUIMessage( { _type = "toggleDisplay", state = false } ) - elseif ( PLY.veh > 0 and PLY.vehClassValid and self:GetDisplayState() and self:GetDisplayHidden() ) then + elseif ( PLY.veh > 0 and PLY.vehClassValid and PLY.inDriverSeat and self:GetDisplayState() and self:GetDisplayHidden() ) then self:SetDisplayHidden( false ) SendNUIMessage( { _type = "toggleDisplay", state = true } ) end