Skip to content

Commit

Permalink
fix: pass vehicle to police alert config function in all places (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
Manason authored Oct 24, 2024
1 parent ae5115e commit c898f10
Show file tree
Hide file tree
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
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion client/searchkeys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c898f10

Please sign in to comment.