Replacing ESX notify

This page will contain information about how to replace the ESX notifications with orbit-dynamichud's built-in notification system.

πŸ” Replacing ESX Notify (New esx_notify Based Version)

If your ESX installation uses:

ESX.ShowNotification(...)

inside:

es_extended/client/functions.lua

you need to override that logic and redirect it to orbit-dynamichud.


πŸ“‚ File Location

Open:

es_extended/client/functions.lua

Locate:

---@param message string The message to show
---@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, position)
	return IsResourceFound('esx_notify') and exports['esx_notify']:Notify(notifyType or "info", length or 5000, message, title, position)
end

✏️ Replace It With

Replace the entire function with:


🧠 What Changed?

Before:

After:

This completely bypasses esx_notify.

All scripts using:

or

will now use Orbit Dynamic HUD notifications automatically.


⚠️ Important Notes

  • position is no longer used (Orbit controls its own positioning).

  • You can safely remove the IsResourceFound('esx_notify') logic.

  • It is recommended to apply this before server start.

  • Restart es_extended after making the change.

  • If ESX updates, you will need to reapply this modification.


🎯 Result

After this modification, your entire ESX server will use:

Orbit Dynamic HUD notifications

while maintaining full compatibility with all existing ESX-based scripts.


Last updated