Skip to content

Commit

Permalink
Fix(client/auto close): if set to 0 it will instant close
Browse files Browse the repository at this point in the history
  • Loading branch information
Frowmza committed Mar 22, 2024
1 parent b26c029 commit d0a2b27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ RegisterNetEvent('bl_idcard:open', function(data)
openCardPopup(data)

local popupConfig = config.popup
if popupConfig.autoclose then
if popupConfig.autoclose ~= 0 then
SetTimeout(popupConfig.autoclose, function()
closeCardPopup()
end)
Expand Down

0 comments on commit d0a2b27

Please sign in to comment.