feat(resource/interface): export notify

This commit is contained in:
Linden
2022-04-11 03:52:18 +00:00
parent 285f30f8fe
commit e842185382
4 changed files with 58 additions and 10 deletions

View File

@@ -0,0 +1,19 @@
--[[```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