Awesome work. Is there a way to remove that time bar at the bottom of the notifications?
any clue what im doing wrong here? exports['t-notify']:SendImage('info', test, ![data|https://i.imgur.com/alDqXG8.png], 5500, true, true)
or exports['t-notify']:SendImage('info', test, https://i.imgur.com/alDqXG8.png, 5500, true, true)
Very nice script, will defo use
1 Like
Steven, ayudame bro,
Im trying to make it work for basic needs
Im using the server side option here
TriggerClientEvent('tnotify:client:SendImage', source, {
style = 'info',
title = 'Pearls info',
duration = 7000,
img = '[https://i.imgur.com/Jd6FeXJ.png]',
sound = true,
custom = true
})
I’ve tried already without the ![] and with the ![] but just managed to get the TITLE but not the actual image, are there any restrictions on size?
EDIT:
Never mind, I got help from Taso directly:
We ended up on this code:
TriggerClientEvent('tnotify:client:SendImage', source, {
style = 'error',
image = 'https://i.imgur.com/Jd6FeXJ.png'
})
Cheers!
hahaha i had just received the notification and was reading your problem so i could help you but i’m glad you already solved it!
1 Like
@Taso Great job but I have a question, is there any way to close notifications from the client side? Example: I show an user a 15 secs long notification, but the players presses a button to close it when there’s still 10 secs remaining.
Yo, but how do you send it on the alerta thing?
Like I know that it needs to draw on the client-side isn’t?
Do you mind posting where do you actually call it?
Well, in my case it’s very simple. I have the alert as a trigger client event that is executed with a command that only police officers can activate.
@Steven_Garcia
I figured it out myself
do you use a timed image or a static one?
Taso
30
There is currently no feature like that implemented
Is that a possibility in the future?
Taso
32
Possibly, but I am only looking to add features that can be widely applicable across a range of applications. Is the only use case a police alert type system for your suggested feature?
It coulld be applied to ems, taxi and mechanic in a similar manner, but yeah mostly a QoL for jobs / scripts that rely on a player getting a notification and reacting to it
Taso
34
A possible feature I was thinking of adding was the ability to toggle a NUI focus mode that would also allow for interaction with the notification through the use of embedded buttons.
2 Likes
Taso
35
T-Notify Update V1.2.0
- Migrated to new documentation platform
- Added the ability to configure max notifications
- Fixed float right tag not working properly
- Changed license to GPL 3.0
- Changed debug logging toggle to config
You can find the latest release here
Is there a way to color certain text of a notification like you can in pnotify etc?
Taso
37
You can do this by applying custom CSS as shown in the documentation.
Idont think you understood 100% let me show you
exports[‘t-notify’]:SendTextAlert(‘info’, ‘This is an example message’, 5500, true)
this is the snippet i use in pnotify so color the text after it <b style='color:white> Hi now that hi would be white is there somehow i can do the same in the text up there maybe with something similar
Taso
39
Yes you can do the same thing by adding the CSS property of color: white to a custom class in custom.css.
Here is the documentation page for that
Looks very good. Keep up the good work.
1 Like