From fa386b46d383bda27e770f18d152fe8ac27a07f0 Mon Sep 17 00:00:00 2001 From: Dan Date: Sat, 13 Mar 2021 15:19:05 +0000 Subject: [PATCH] fix: passenger accessing operator menu --- cl_radar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_radar.lua b/cl_radar.lua index 9aacffd..51d6be7 100644 --- a/cl_radar.lua +++ b/cl_radar.lua @@ -1769,7 +1769,7 @@ end ) RegisterNUICallback( "menu", function( data, cb ) if ( PLY:CanControlRadar() ) then -- Only run the codw if the radar has power and is not powering up - if ( RADAR:IsPowerOn() and not RADAR:IsPoweringUp() ) then + if ( RADAR:IsPowerOn() and not RADAR:IsPoweringUp() and PLY:IsDriver() ) then -- As the menu button is a multipurpose button, we first check to see if the menu is already open if ( RADAR:IsMenuOpen() ) then -- As the menu is already open, we then iterate to the next option in the settings list