#cm-notify

1 messages · Page 1 of 1 (latest)

still trench
#

Do you mean how would you make it so it ox compatible ?

fluid venture
#

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

still trench
#

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

fluid venture
#

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

still trench
#

Above my paygrade

#

Compat that well within

#

BRB

fluid venture
#

but it dont work

still trench
#

I know that’s why it’s above my paygrade

fluid venture
#

i wanna make it so i can put it in ox_lib

still trench
#

Ik

fluid venture
#

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

edgy patrol
#

Morning.

Has this been solved ?

#

Let me just finish my coffee first

fluid venture
#

no it hasnt lol

#

and its really annoying me

#

😂

#

i have not patients

vast aspen
#

Doesn't look like you're even passing text to the opts table you send to the lib notify

fluid venture
#

well thats chat gpt for ya lol

#

I have no clue bro

vast aspen
#

What are you wanting to do?

fluid venture
#

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

vast aspen
#

You want to replace qb core notifications with cm-notify instead?

fluid venture
#

So im on QBX but QBX support is dog i want to get cm notify to work with ox lib

vast aspen
#

Their support is just fine

fluid venture
#

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

vast aspen
fluid venture
#

i cant cause the tebex code was redeemdd on my old discord account

#

and i dont got access to uit

vast aspen
#

Wouldn't you still have the Tebex transaction ID somewhere in your records? Email?

fluid venture
#

yeah i do

#

but you can topen a ticket in there discord if the tebex id has been redeems

edgy patrol
#

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.