Plate reader only beeps when a plate is locked

This commit is contained in:
Dan
2020-02-18 17:01:08 +00:00
parent fee5a569da
commit 56abe5e36e

View File

@@ -113,8 +113,10 @@ function READER:LockCam( cam )
-- Tell the NUI side to show/hide the lock icon -- Tell the NUI side to show/hide the lock icon
SendNUIMessage( { _type = "lockPlate", cam = cam, state = self:GetCamLocked( cam ) } ) SendNUIMessage( { _type = "lockPlate", cam = cam, state = self:GetCamLocked( cam ) } )
-- Play a beep -- Play a beep
SendNUIMessage( { _type = "audio", name = "beep", vol = RADAR:GetSettingValue( "beep" ) } ) if ( self:GetCamLocked( cam ) ) then
SendNUIMessage( { _type = "audio", name = "beep", vol = RADAR:GetSettingValue( "beep" ) } )
end
end end
end end