add position argument to player class and shownotification function

This commit is contained in:
alexistb2904
2025-08-09 13:39:43 +00:00
parent 7cc6d88513
commit 056b3393c5
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -153,9 +153,10 @@ end
---@param notifyType? string The type of notification to show
---@param length? number The length of the notification
---@param title? string The title of the notification
---@param position? string The position of the notification
---@return nil
function ESX.ShowNotification(message, notifyType, length, title)
return IsResourceFound('esx_notify') and exports['esx_notify']:Notify(notifyType, length, message, title)
function ESX.ShowNotification(message, notifyType, length, title, position)
return IsResourceFound('esx_notify') and exports['esx_notify']:Notify(notifyType, length, message, title, position)
end
function ESX.TextUI(...)
+3 -2
View File
@@ -790,9 +790,10 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
---@param msg string
---@param notifyType string
---@param length number
---@param position string
---@return nil
function self.showNotification(msg, notifyType, length)
self.triggerEvent("esx:showNotification", msg, notifyType, length)
function self.showNotification(msg, notifyType, length, position)
self.triggerEvent("esx:showNotification", msg, notifyType, length, position)
end
---@param sender string