From c898f1056e3c58041d92985430f14f7782c7e292 Mon Sep 17 00:00:00 2001 From: Manason Date: Wed, 23 Oct 2024 18:23:11 -0700 Subject: [PATCH] fix: pass vehicle to police alert config function in all places (#148) --- client/carjack.lua | 2 +- client/searchkeys.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/carjack.lua b/client/carjack.lua index 10f5063..5ceaf35 100644 --- a/client/carjack.lua +++ b/client/carjack.lua @@ -100,7 +100,7 @@ local function carjackVehicle(driver, vehicle) end TriggerServerEvent('hud:server:GainStress', math.random(1, 4)) Wait(2000) - SendPoliceAlertAttempt('carjack') + SendPoliceAlertAttempt('carjack', vehicle) end else makePedFlee(driver) diff --git a/client/searchkeys.lua b/client/searchkeys.lua index 6b5cacc..9d94f08 100644 --- a/client/searchkeys.lua +++ b/client/searchkeys.lua @@ -78,7 +78,7 @@ local searchKeysKeybind = lib.addKeybind({ if not GetIsVehicleAccessible(vehicle) then isFound = findKeys(GetEntityModel(vehicle), GetVehicleClass(vehicle), vehicle) SetTimeout(10000, function() - SendPoliceAlertAttempt('steal') + SendPoliceAlertAttempt('steal', vehicle) end) end Wait(config.timeBetweenHotwires)