From dcd561164fcf831b52b926f2cdd8325f4d3e0d4c Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 12 Mar 2021 21:22:55 +0000 Subject: [PATCH] refactor: reduce wait when loading data from driver --- cl_radar.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cl_radar.lua b/cl_radar.lua index 9bfd44a..85188dd 100644 --- a/cl_radar.lua +++ b/cl_radar.lua @@ -404,8 +404,8 @@ function RADAR:LoadDataFromDriver( data ) -- Backup the local data first self:BackupData() - -- As a precaution, give the system 100ms before it replaces the local data with the data from the driver - Citizen.SetTimeout( 100, function() + -- As a precaution, give the system 50ms before it replaces the local data with the data from the driver + Citizen.SetTimeout( 50, function() -- Set the operator menu settings self:SetOMTableData( data.om )