mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
feat(client/notifications): Add default chakra notification functions
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
iconColor?: string
|
||||
}
|
||||
```]]
|
||||
|
||||
-- Custom notifications with a lot of allowed styling
|
||||
---@param data table
|
||||
function lib.notify(data)
|
||||
SendNUIMessage({
|
||||
@@ -18,4 +20,12 @@ function lib.notify(data)
|
||||
})
|
||||
end
|
||||
|
||||
-- Default Chakra UI notifications
|
||||
function lib.defaultNotify(data)
|
||||
SendNUIMessage({
|
||||
action = 'notify',
|
||||
data = data
|
||||
})
|
||||
end
|
||||
|
||||
RegisterNetEvent('ox_lib:notify', lib.notify)
|
||||
|
||||
Reference in New Issue
Block a user