mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
Fixed notification 99 char limit by using TextEntry, fixes #286
You can also split up strings each 99 chars and still use AddTextComponentSubstringPlayerName
This commit is contained in:
@@ -45,22 +45,22 @@ ESX.SetPlayerData = function(key, val)
|
||||
end
|
||||
|
||||
ESX.ShowNotification = function(msg)
|
||||
SetNotificationTextEntry('STRING')
|
||||
AddTextComponentSubstringPlayerName(msg)
|
||||
AddTextEntry('esxNotification', msg)
|
||||
SetNotificationTextEntry('esxNotification')
|
||||
DrawNotification(false, true)
|
||||
end
|
||||
|
||||
ESX.ShowAdvancedNotification = function(title, subject, msg, icon, iconType)
|
||||
SetNotificationTextEntry('STRING')
|
||||
AddTextComponentSubstringPlayerName(msg)
|
||||
AddTextEntry('esxAdvancedNotification', msg)
|
||||
SetNotificationTextEntry('esxAdvancedNotification')
|
||||
SetNotificationMessage(icon, icon, false, iconType, title, subject)
|
||||
DrawNotification(false, false)
|
||||
end
|
||||
|
||||
ESX.ShowHelpNotification = function(msg)
|
||||
--if not IsHelpMessageBeingDisplayed() then
|
||||
BeginTextCommandDisplayHelp('STRING')
|
||||
AddTextComponentSubstringPlayerName(msg)
|
||||
AddTextEntry('esxHelpNotification', msg)
|
||||
BeginTextCommandDisplayHelp('esxHelpNotification')
|
||||
EndTextCommandDisplayHelp(0, false, true, -1)
|
||||
--end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user