From 346b67383e24aea4981d8f91958df63e9e967949 Mon Sep 17 00:00:00 2001 From: Cocodrulo <142546774+Cocodrulo@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:07:31 +0000 Subject: [PATCH] fix (vehiclekeys): remove database sync condition for key events in client side --- client/main.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/client/main.lua b/client/main.lua index a5cd011..436e327 100644 --- a/client/main.lua +++ b/client/main.lua @@ -211,12 +211,10 @@ RegisterNetEvent('qb-vehiclekeys:client:AddKeys', function(plate) SetVehicleEngineOn(vehicle, false, false, false) end end - if Config.SaveInDB then TriggerServerEvent("qb-vehiclekeys:server:synckeys", KeysList) end end) RegisterNetEvent('qb-vehiclekeys:client:RemoveKeys', function(plate) KeysList[plate] = nil - if Config.SaveInDB then TriggerServerEvent("qb-vehiclekeys:server:synckeys", KeysList) end end) RegisterNetEvent('qb-vehiclekeys:client:ToggleEngine', function()