Replacing ox_lib notify

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

πŸ” Replacing ox_lib Notify

If your server already uses ox_lib notifications, you can fully redirect them to orbit-dynamichud without rewriting your existing scripts.

This allows all calls to:

lib.notify({...})

to automatically use the Orbit Dynamic HUD notification system instead.


πŸ“‚ File Location

Navigate to:

ox_lib/resource/interface/client/notify.lua

This is the file where lib.notify() is defined on the client side.


✏️ What To Change

Find the existing function:

---`client`
---@param data NotifyProps
---@diagnostic disable-next-line: duplicate-set-field
function lib.notify(data)
    -- original ox_lib logic
end

Replace the entire function with:

That’s it.

You are now redirecting all lib.notify() calls directly to Orbit Dynamic HUD.


🧠 What This Does

Before:

After:

This means:

  • No script edits required elsewhere

  • Full compatibility with existing resources

  • Centralized notification styling

  • Orbit HUD sound + design system automatically applied


βœ… Compatibility

orbit-dynamichud supports the standard ox_lib notification structure:

All supported fields will behave as expected.


⚠️ Important Notes

  • This change must be done client-side.

  • It is recommended that you do this change before server start to prevent unforeseen issues.

  • Restart ox_lib after making the modification.

  • If you update ox_lib in the future, you will need to reapply this change.

  • It is recommended to document this modification internally for your server team.


🎯 Result

After completing this step, your entire server will use:

Orbit Dynamic HUD notifications while keeping full compatibility with scripts built around ox_lib.


Last updated