mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-26 12:54:45 +00:00
feat(client/notifications): Add default chakra notification functions
This commit is contained in:
1 parent
caa0b8284f
commit
66f9460729
1 file changed
+10
@@ -10,6 +10,8 @@
|
|||||||
iconColor?: string
|
iconColor?: string
|
||||||
}
|
}
|
||||||
```]]
|
```]]
|
||||||
|
|
||||||
|
-- Custom notifications with a lot of allowed styling
|
||||||
---@param data table
|
---@param data table
|
||||||
function lib.notify(data)
|
function lib.notify(data)
|
||||||
SendNUIMessage({
|
SendNUIMessage({
|
||||||
@@ -18,4 +20,12 @@ function lib.notify(data)
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Default Chakra UI notifications
|
||||||
|
function lib.defaultNotify(data)
|
||||||
|
SendNUIMessage({
|
||||||
|
action = 'notify',
|
||||||
|
data = data
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
RegisterNetEvent('ox_lib:notify', lib.notify)
|
RegisterNetEvent('ox_lib:notify', lib.notify)
|
||||||
Reference in new issue
Block a user