Skip to content

Commit

Permalink
Fixxed the notification.
Browse files Browse the repository at this point in the history
  • Loading branch information
wildesPepega authored Jan 3, 2024
1 parent 66e9377 commit d235d2d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions [core]/es_extended/client/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,10 @@ function ESX.Progressbar(message, length, Options)
print("[^1ERROR^7] ^5ESX Progressbar^7 is Missing!")
end

function ESX.ShowNotification(message, notifyType, length)
if GetResourceState("esx_notify") ~= "missing" then
return exports["esx_notify"]:Notify(notifyType, length, message)
end

print("[^1ERROR^7] ^5ESX Notify^7 is Missing!")
function ESX.ShowNotification = function(message)
SetNotificationTextEntry('STRING')
AddTextComponentString(message)
DrawNotification(0,1)
end

function ESX.TextUI(message, notifyType)
Expand Down

0 comments on commit d235d2d

Please sign in to comment.