Issues with ox_lib notify

Hello, I started to make a DVALL script using ox_lib notify but whenever someone triggers the command it only shows the notification on thier screen,
Can someone help me make it to where it shows on everyone’s game ?

Here’s the code:

    TriggerClientEvent('ox_lib:notify', source, { title = 'DVALL SYSTEM', type = 'warning', description = 'All the vehicles will be removed in 30 seconds',  position = 'top' })
    Wait(15000)
    TriggerClientEvent('ox_lib:notify', source, { title = 'DVALL SYSTEM', type = 'warning', description = 'All the vehicles will be removed in 15 seconds',  position = 'top' })
    Wait(10000)
    TriggerClientEvent('ox_lib:notify', source, { title = 'DVALL SYSTEM', type = 'warning', description = 'All the vehicles will be removed in 10 seconds',  position = 'top' })
    Wait(5000)
    TriggerClientEvent('ox_lib:notify', source, { title = 'DVALL SYSTEM', type = 'warning', description = 'All the vehicles will be removed in 5 seconds',  position = 'top' })
    Wait(5000)
    TriggerClientEvent('ox_lib:notify', source, { title = 'DVALL SYSTEM', type = 'success', description = 'All the vehicles have been removed !',  position = 'top' })

Please I really need it by tommorow.
Also, its for a server file !

1 Like

Replace source (which is just the ID of the command initiator) with -1 (which tells the Trigger to send the event to everyone online)

Testing it right now I will update, Thanks for the reply.

Thank you ! It worked.

1 Like

Just so u know u passed the event to the person executing it by passing Source.
the source means “Who am i sending it to” and if u pass source in there it just means oh pass a message to myself!

If you replace it with -1 it sends it to “All active players”.

If u where to have a friend online with source 3, and u filled in 3, it would have sent it to your friend.

Thanks for explaining, I’m new to all of this.

1 Like