NUI callback response formatting

This commit is contained in:
Dan
2020-11-07 12:35:46 +00:00
parent 914b6d5f44
commit 6266bd8ed4
2 changed files with 13 additions and 10 deletions

View File

@@ -185,14 +185,14 @@ end )
RegisterNUICallback( "togglePlateReaderDisplay", function( data, cb )
-- Toggle the display state
READER:ToggleDisplayState()
cb('ok')
cb( "ok" )
end )
-- Runs when the "Set BOLO Plate" button is pressed on the plate reader box
RegisterNUICallback( "setBoloPlate", function( plate, cb )
-- Set the BOLO plate
READER:SetBoloPlate( plate )
cb('ok')
cb( "ok" )
end )
-- Runs when the "Clear BOLO Plate" button is pressed on the plate reader box