Changed PLY:CanRunRadar() to PLY:CanViewRadar()

This commit is contained in:
Dan
2020-11-13 19:45:48 +00:00
parent 964f97835b
commit fb13e79e3b
2 changed files with 11 additions and 11 deletions

View File

@@ -284,7 +284,7 @@ function READER: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 = "setReaderDisplayState", state = false } )
elseif ( PLY:CanRunRadar() and self:GetDisplayState() and self:GetDisplayHidden() ) then
elseif ( PLY:CanViewRadar() and self:GetDisplayState() and self:GetDisplayHidden() ) then
self:SetDisplayHidden( false )
SendNUIMessage( { _type = "setReaderDisplayState", state = true } )
end