Skip to content

Commit

Permalink
Bug Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuraiDevCo authored Dec 7, 2024
1 parent c5a52f3 commit 4ab4d18
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1072,17 +1072,19 @@ AddEventHandler("SDAP:Client:StartChaseTimer", function()
end
end
end
local wephash = nil
wephash = hasIllegal[math.random(1, #hasIllegal)]
Wait(5000)
if curPullover.Ped then
GiveWeaponToPed(curPullover.Ped, GetHashKey(wephash), 60, true, false)
TaskLeaveVehicle(curPullover.Ped, curPullover.Veh, 256)
Wait(2500)
TriggerEvent("SDAP:Client:Notification", SDC.Lang.LocalIsFightingBack, "primary")
SetCurrentPedWeapon(curPullover.Ped, GetHashKey(wephash), true)
TaskCombatPed(curPullover.Ped, PlayerPedId(), 0, 16)
SetPedKeepTask(curPullover.Ped, true)
if hasIllegal[1] then
local wephash = nil
wephash = hasIllegal[math.random(1, #hasIllegal)]
Wait(5000)
if curPullover.Ped then
GiveWeaponToPed(curPullover.Ped, GetHashKey(wephash), 60, true, false)
TaskLeaveVehicle(curPullover.Ped, curPullover.Veh, 256)
Wait(2500)
TriggerEvent("SDAP:Client:Notification", SDC.Lang.LocalIsFightingBack, "primary")
SetCurrentPedWeapon(curPullover.Ped, GetHashKey(wephash), true)
TaskCombatPed(curPullover.Ped, PlayerPedId(), 0, 16)
SetPedKeepTask(curPullover.Ped, true)
end
end
end
end
Expand Down

0 comments on commit 4ab4d18

Please sign in to comment.