Skip to content

Commit

Permalink
fix(client): blur screen when using /viewinv
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Mar 25, 2023
1 parent dbd01bb commit 51b467f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1500,13 +1500,16 @@ RegisterNetEvent('ox_inventory:viewInventory', function(data)
data.type = 'admin'
plyState.invOpen = true
currentInventory = data

SendNUIMessage({
action = 'setupInventory',
data = {
rightInventory = currentInventory,
}
})
SetNuiFocus(true, true)

if client.screenblur then TriggerScreenblurFadeIn(0) end
end
end)

Expand Down

0 comments on commit 51b467f

Please sign in to comment.