docs: plate reader headers

This commit is contained in:
Dan
2021-03-14 20:32:50 +00:00
parent 1ebaab9665
commit dc8a9a7437

View File

@@ -68,6 +68,10 @@ READER.vars =
} }
} }
--[[----------------------------------------------------------------------------------
Plate reader functions
----------------------------------------------------------------------------------]]--
-- Gets the display state -- Gets the display state
function READER:GetDisplayState() function READER:GetDisplayState()
return self.vars.displayed return self.vars.displayed
@@ -181,6 +185,10 @@ AddEventHandler( "wk:togglePlateLock", function( cam, beep, bolo )
READER:LockCam( cam, beep, bolo ) READER:LockCam( cam, beep, bolo )
end ) end )
--[[----------------------------------------------------------------------------------
Plate reader NUI callbacks
----------------------------------------------------------------------------------]]--
-- Runs when the "Toggle Display" button is pressed on the plate reder box -- Runs when the "Toggle Display" button is pressed on the plate reder box
RegisterNUICallback( "togglePlateReaderDisplay", function( data, cb ) RegisterNUICallback( "togglePlateReaderDisplay", function( data, cb )
-- Toggle the display state -- Toggle the display state
@@ -202,6 +210,10 @@ RegisterNUICallback( "clearBoloPlate", function( plate, cb )
cb( "ok" ) cb( "ok" )
end ) end )
--[[----------------------------------------------------------------------------------
Plate reader threads
----------------------------------------------------------------------------------]]--
-- This is the main function that runs and scans all vehicles in front and behind the patrol vehicle -- This is the main function that runs and scans all vehicles in front and behind the patrol vehicle
function READER:Main() function READER:Main()
-- Check that the system can actually run -- Check that the system can actually run