mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
20 lines
343 B
Lua
20 lines
343 B
Lua
|
|
--[[```lua
|
||
|
|
{
|
||
|
|
id?: string
|
||
|
|
title?: string
|
||
|
|
description: string
|
||
|
|
duration?: number
|
||
|
|
position?: 'top' | 'top-right' | 'top-left' | 'bottom' | 'bottom-right' | 'bottom-left'
|
||
|
|
style?: table
|
||
|
|
icon?: string
|
||
|
|
iconColor?: string
|
||
|
|
}
|
||
|
|
```]]
|
||
|
|
---@param data table
|
||
|
|
function lib.notify(data)
|
||
|
|
SendNUIMessage({
|
||
|
|
action = 'customNotify',
|
||
|
|
data = data
|
||
|
|
})
|
||
|
|
end
|