Skip to content

Commit

Permalink
chore: async alert on target
Browse files Browse the repository at this point in the history
  • Loading branch information
xThrasherrr committed Oct 4, 2024
1 parent 89f6bab commit e50c170
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions modules/client/prison.lua
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,15 @@ function prisonModules.enterPrison(setTime)
while not IsScreenFadedIn() do Wait(25) end

if config.EnterPrisonAlert.enable and not isLifer then
local alertInfo = config.EnterPrisonAlert
lib.alertDialog({
header = alertInfo.header,
content = (locale('input.prison_sentence')):format(setTime, alertInfo.content),
centered = true,
labels = { confirm = 'Close' }
})
CreateThread(function()
local alertInfo = config.EnterPrisonAlert
lib.alertDialog({
header = alertInfo.header,
content = (locale('input.prison_sentence')):format(setTime, alertInfo.content),
centered = true,
labels = { confirm = 'Close' }
})
end)
elseif config.EnterPrisonAlert.enable and isLifer then
lib.notify({ title = locale('notify.lifer'), type = 'error' })
end
Expand Down

0 comments on commit e50c170

Please sign in to comment.