Updated native names, added optional values (read desc)

Added flash and saveToBreif booleans to ESX.ShowNotification() and ESX.ShowHelpNotification()

Added two optional booleans thisFrame, beep to ShowHelpNotification() and last new optional argument duration
This commit is contained in:
ElPumpo
2020-01-15 11:54:19 +01:00
parent b3a36747a3
commit 1d83a1f2f4
2 changed files with 25 additions and 22 deletions
+4 -4
View File
@@ -531,12 +531,12 @@ function CreateExtendedPlayer(player, accounts, inventory, job, loadout, name, c
return
end
self.showNotification = function(msg)
self.triggerEvent('esx:showNotification', msg)
self.showNotification = function(msg, flash, saveToBrief)
self.triggerEvent('esx:showNotification', msg, flash, saveToBrief)
end
self.showHelpNotification = function(msg)
self.triggerEvent('esx:showHelpNotification', msg)
self.showHelpNotification = function(msg, thisFrame, beep, duration)
self.triggerEvent('esx:showHelpNotification', msg, thisFrame, beep, duration)
end
return self