Skip to content

Commit

Permalink
i'm retarded
Browse files Browse the repository at this point in the history
  • Loading branch information
mockdot committed Jul 28, 2023
1 parent 87dd681 commit f51e67d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f51e67d

Please sign in to comment.