Open Functions

You can customize certain functions such as displaying notifications or opening the inventory in the client/functions/openfunctions.lua file:

openfunctions.lua
-- Function to display notifications
function showNotification(content, id, type)
    -- Possible types : admin_info / info / warn / message / announce
    defaultNotification(content) 
 
    -- You can replace it with your own notification system
    -- (by default for esx = ESX.ShowNotification() , qb = QBCore.Functions.Notify())
end
 
-- Function to open the inventory from the panel
function openInventory(targetIdentifier)
    -- Default function
    openDefaultInventory(targetIdentifier)
 
    -- You can replace it with your own open inventory system    
    -- If needed, you can use the following event to close the panel :
    -- TriggerEvent('red_admin:close')
end