Skip to content

Commit

Permalink
fix (vehiclekeys): remove database sync condition for key events in c…
Browse files Browse the repository at this point in the history
…lient side
  • Loading branch information
Cocodrulo committed Nov 14, 2024
1 parent 5b0f093 commit 346b673
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 346b673

Please sign in to comment.