Files
overextended.github.io/docs/ox_inventory/Functions/External/Client/Utils/notify.md
T
2022-03-01 22:03:36 +01:00

696 B

Displays the notification used accross the inventory.

The notifications are built using the react-hot-teast library.

-- data: table
exports.ox_inventory:notify(data)

Values for the data table:

-- text: string
-- type: string (optional)
    -- 'success'
    -- 'info' - default
    -- 'error'
-- position: string (optional)
    -- 'top-left'
    -- 'top-center' - default
    -- 'top-right'
    -- 'bottom-left'
    -- 'bottom-center'
    -- 'bottom-right
-- duration: number (optional - default is 4000 ms)

Example:

exports.ox_inventory:notify({type = 'Success', text = 'Making pancakes', duration = 2500})