mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-28 17:01:14 +00:00
add position argument to player class and shownotification function
This commit is contained in:
@@ -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(...)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user