From 056b3393c5ccf4d2322d174e75f07c4ee0ecca0a Mon Sep 17 00:00:00 2001 From: alexistb2904 <59259007+alexistb2904@users.noreply.github.com> Date: Sat, 9 Aug 2025 13:39:43 +0000 Subject: [PATCH] add position argument to player class and shownotification function --- [core]/es_extended/client/functions.lua | 5 +++-- [core]/es_extended/server/classes/player.lua | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/[core]/es_extended/client/functions.lua b/[core]/es_extended/client/functions.lua index 32f8f5d9..f74e4688 100644 --- a/[core]/es_extended/client/functions.lua +++ b/[core]/es_extended/client/functions.lua @@ -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(...) diff --git a/[core]/es_extended/server/classes/player.lua b/[core]/es_extended/server/classes/player.lua index df1d1ee5..4a94d6d8 100644 --- a/[core]/es_extended/server/classes/player.lua +++ b/[core]/es_extended/server/classes/player.lua @@ -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