Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: pass vehicle to police alert config function in all places
Browse files Browse the repository at this point in the history
Manason committed Oct 21, 2024
1 parent ae5115e commit 97149c0
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/carjack.lua
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion client/searchkeys.lua
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 97149c0

Please sign in to comment.