Skip to content

Commit

Permalink
smoother blur & none drop - jaxonfromkh
Browse files Browse the repository at this point in the history
  • Loading branch information
loljoshie authored Dec 16, 2021
1 parent 2732b6f commit 6170ccb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ RegisterNetEvent('inventory:client:OpenInventory', function(PlayerAmmo, inventor
if not IsEntityDead(PlayerPedId()) then
Wait(500)
ToggleHotbar(false)
TriggerScreenblurFadeIn(135)
TriggerScreenblurFadeIn(1000)
SetNuiFocus(true, true)
if other ~= nil then
currentOtherInventory = other.name
Expand Down Expand Up @@ -729,6 +729,7 @@ RegisterNUICallback("CloseInventory", function(data, cb)
CurrentStash = nil
SetNuiFocus(false, false)
inInventory = false
TriggerScreenblurFadeOut(1000)
ClearPedTasks(PlayerPedId())
return
end
Expand All @@ -747,7 +748,7 @@ RegisterNUICallback("CloseInventory", function(data, cb)
CurrentDrop = 0
end
Wait(50)
TriggerScreenblurFadeOut(135)
TriggerScreenblurFadeOut(1000)
SetNuiFocus(false, false)
inInventory = false
end)
Expand Down

0 comments on commit 6170ccb

Please sign in to comment.