From f51e67da7d3a448cfe96201bb14ee2de0262880d Mon Sep 17 00:00:00 2001 From: mockdot Date: Thu, 27 Jul 2023 18:16:26 -0600 Subject: [PATCH] i'm retarded --- client/main.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/client/main.lua b/client/main.lua index 5222c35..a908801 100644 --- a/client/main.lua +++ b/client/main.lua @@ -217,7 +217,7 @@ RegisterNetEvent('qb-vehiclekeys:client:GiveKeys', function(id) end end else - QBCore.Functions.Notify({Lang:t("notify.no_keys"), type = 'error'}) + QBCore.Functions.Notify(Lang:t("notify.no_keys"), 'error') end end end) @@ -241,7 +241,7 @@ function GiveKeys(id, plate) if distance < 1.5 and distance > 0.0 then TriggerServerEvent('qb-vehiclekeys:server:GiveVehicleKeys', id, plate) else - QBCore.Functions.Notify({Lang:t("notify.not_near"), type = 'error'}) + QBCore.Functions.Notify(Lang:t("notify.not_near"), 'error') end end @@ -330,10 +330,10 @@ function ToggleVehicleLocks(veh) NetworkRequestControlOfEntity(veh) if vehLockStatus == 1 then TriggerServerEvent('qb-vehiclekeys:server:setVehLockState', NetworkGetNetworkIdFromEntity(veh), 2) - QBCore.Functions.Notify({Lang:t("notify.vehicle_locked"), type = 'inform'}) + QBCore.Functions.Notify(Lang:t("notify.vehicle_locked"), 'inform') else TriggerServerEvent('qb-vehiclekeys:server:setVehLockState', NetworkGetNetworkIdFromEntity(veh), 1) - QBCore.Functions.Notify({Lang:t("notify.vehicle_unlocked"), type = 'inform'}) + QBCore.Functions.Notify(Lang:t("notify.vehicle_unlocked"), 'inform') end SetVehicleLights(veh, 2) @@ -344,7 +344,7 @@ function ToggleVehicleLocks(veh) Wait(300) ClearPedTasks(ped) else - QBCore.Functions.Notify({Lang:t("notify.no_keys"), type = 'error'}) + QBCore.Functions.Notify(Lang:t("notify.no_keys"), 'error') end else TriggerServerEvent('qb-vehiclekeys:server:setVehLockState', NetworkGetNetworkIdFromEntity(veh), 1) @@ -411,7 +411,7 @@ function LockpickFinishCallback(success) if GetPedInVehicleSeat(vehicle, -1) == cache.ped then TriggerServerEvent('qb-vehiclekeys:server:AcquireVehicleKeys', QBCore.Functions.GetPlate(vehicle)) else - QBCore.Functions.Notify({Lang:t("notify.vehicle_lockedpick"), type = 'success'}) + QBCore.Functions.Notify(Lang:t("notify.vehicle_lockedpick"), 'success') TriggerServerEvent('qb-vehiclekeys:server:setVehLockState', NetworkGetNetworkIdFromEntity(vehicle), 1) end @@ -454,7 +454,7 @@ function Hotwire(vehicle, plate) if (math.random() <= Config.HotwireChance) then TriggerServerEvent('qb-vehiclekeys:server:AcquireVehicleKeys', plate) else - QBCore.Functions.Notify({Lang:t("notify.failed_lockedpick"), type = 'error'}) + QBCore.Functions.Notify(Lang:t("notify.failed_lockedpick"), 'error') end Wait(Config.TimeBetweenHotwires) IsHotwiring = false @@ -528,7 +528,7 @@ function CarjackVehicle(target) TriggerServerEvent('hud:server:GainStress', math.random(1, 4)) TriggerServerEvent('qb-vehiclekeys:server:AcquireVehicleKeys', plate) else - QBCore.Functions.Notify({Lang:t("notify.carjack_failed"), type = 'error'}) + QBCore.Functions.Notify(Lang:t("notify.carjack_failed"), 'error') MakePedFlee(target) TriggerServerEvent('hud:server:GainStress', math.random(1, 4)) end