Return callbacks with 'ok' instead of an empty object

This commit is contained in:
Jamelele
2020-06-02 14:36:53 +00:00
parent bc13b14aed
commit b8b2eecaea
2 changed files with 10 additions and 10 deletions

View File

@@ -177,14 +177,14 @@ end )
RegisterNUICallback( "togglePlateReaderDisplay", function( data, cb )
-- Toggle the display state
READER:ToggleDisplayState()
cb({})
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({})
cb('ok')
end )
-- This is the main function that runs and scans all vehicles in front and behind the patrol vehicle