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:
ElPumpo
2019-10-13 20:20:12 +02:00
parent 0e5dda5779
commit 130df3f18f
+6 -6
View File
@@ -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