mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 08:26:27 +02:00
Plate reader only beeps when a plate is locked
This commit is contained in:
@@ -114,8 +114,10 @@ function READER:LockCam( cam )
|
|||||||
SendNUIMessage( { _type = "lockPlate", cam = cam, state = self:GetCamLocked( cam ) } )
|
SendNUIMessage( { _type = "lockPlate", cam = cam, state = self:GetCamLocked( cam ) } )
|
||||||
|
|
||||||
-- Play a beep
|
-- Play a beep
|
||||||
|
if ( self:GetCamLocked( cam ) ) then
|
||||||
SendNUIMessage( { _type = "audio", name = "beep", vol = RADAR:GetSettingValue( "beep" ) } )
|
SendNUIMessage( { _type = "audio", name = "beep", vol = RADAR:GetSettingValue( "beep" ) } )
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Returns if the plate reader system can perform tasks
|
-- Returns if the plate reader system can perform tasks
|
||||||
|
|||||||
Reference in New Issue
Block a user