refactor: reduce wait when loading data from driver

This commit is contained in:
Dan
2021-03-12 21:22:55 +00:00
parent 81751966a6
commit dcd561164f

View File

@@ -404,8 +404,8 @@ function RADAR:LoadDataFromDriver( data )
-- Backup the local data first -- Backup the local data first
self:BackupData() self:BackupData()
-- As a precaution, give the system 100ms before it replaces the local data with the data from the driver -- As a precaution, give the system 50ms before it replaces the local data with the data from the driver
Citizen.SetTimeout( 100, function() Citizen.SetTimeout( 50, function()
-- Set the operator menu settings -- Set the operator menu settings
self:SetOMTableData( data.om ) self:SetOMTableData( data.om )