#cm-notify
1 messages · Page 1 of 1 (latest)
Yeah cause ill be honest im on qbx and there support is dog
i just wanna know how i could get it to work cause ik a server thats on qbx and it works
I wanna say there is a compat available that will make anything qbcore/qbx/esx be oxlib by default without editing anything. Just add to end of load order
I’ll try to find it but try googling with me cause I don’t remember where it is
I been looking bro
i cant find anything lol
if GetResourceState("codem-notification") == "started" then
if data.type == "inform" then
data.type = "info"
elseif data.type == "warning" then
data.type = "info"
end
local description = ""
if data.description == nil or data.description == "" then
description = data.title
else
description = data.description
end
exports['codem-notification']:Notify("Info", description, data.duration or 5000, data.type)
else
SendNUIMessage({
action = 'notify',
data = data
})
end
cause this is what i got atm
but it dont work
I know that’s why it’s above my paygrade
i wanna make it so i can put it in ox_lib
Ik
function QBCore.Functions.Notify(text, texttype, length)
local convert = {
["primary"] = 'info',
["police"] = 'info', -- ox_lib does not have lspd, so using info
["ambulance"] = 'info', -- same here
}
if not texttype then
texttype = 'info'
end
if convert[texttype] then
texttype = convert[texttype]
end
local opts = {
title = 'Notification',
duration = length or 5000,
type = texttype
}
if type(text) == "table" then
opts.description = text.text or 'Placeholder'
else
opts.description = text
end
lib.notify(opts)
end
what about this
Doesn't look like you're even passing text to the opts table you send to the lib notify
What are you wanting to do?
function QBCore.Functions.Notify(text, texttype, length)
local convert = {
["primary"] = 'info',
["police"] = 'lspd',
["ambulance"] = 'ems',
}
if not texttype then
texttype = 'info'
end
if convert[texttype] then
texttype = convert[texttype]
end
if type(text) == "table" then
local ttext = text.text or 'Placeholder'
local caption = text.caption or 'Placeholder'
length = length or 5000
TriggerEvent('codem-notification:Create', ttext, texttype, caption, length)
else
length = length or 5000
TriggerEvent('codem-notification:Create', text, texttype, nil, length)
end
end
so i wannt gewt
make this
work for ox_lib
but i dont know what it would be
You want to replace qb core notifications with cm-notify instead?
So im on QBX but QBX support is dog i want to get cm notify to work with ox lib
Their support is just fine
Its really not
i should have stayed with qbcore
nothing workls with qbx
please could you help me id really appreciate it
ill even pay you
https://codem.gitbook.io/codem-documentation/m-series/essentials/mnotification
Seems like you should contact the developer for support as it's a paid resource
i cant cause the tebex code was redeemdd on my old discord account
and i dont got access to uit
Wouldn't you still have the Tebex transaction ID somewhere in your records? Email?
yeah i do
but you can topen a ticket in there discord if the tebex id has been redeems
What we admire here is honesty.
This is just a waste of time for people who are trying to help you.
There are rules regarding on how we approach the support threads.
We cannot provide support for any kind of paid resource.