EdgeG
July 15, 2017, 6:45pm
12
Works wonderfully, the only thing I am concerned about is being able to for example /block id from sending any messages to you. Thanks for the release!
Edit: I’ve also noticed that if you /text non-existent ID it shows a notification with what I believe to be names2 as nil. I am currently working on a way to cancel the event if it’s nil.
Edit2: Got it!
if names2 ~= nil then
TriggerClientEvent('simp:textsent', source, tPID, names2)
end
1 Like
EdgeG:
Edit: I’ve also noticed that if you /text non-existant ID it shows a notification with what I believe to be names2 as nil. I am currently working on a way to cancel the event if it’s nil.
Edit2: Got it!
if names2 ~= nil then
TriggerClientEvent('simp:textsent', source, tPID, names2)
end
Awesome!
Never actually thought about a /Block Function, Might not be a bad idea!
1 Like
BUMP:
OP Updated with an FXServer Compatable Version.
when I do this cmd I’m getting a bunch of code to appear in my chat its the basic format but is there a way I can change that
1 Like
What does Pnotify do and how do I set it up?
You could’ve easily Google’d that and figured it out yourself… But this’ll answer both questions:
Or, you could’ve just searched the forum:
pNotify:
pNotify simply implements a Javascript notification library called NOTY .
I didn’t like all of the notifications in the chat box so I threw this together real quick, I didn’t plan on making it public so this may confuse some people. Just look at the examples and you should be able to understand how it works. This just simply sends a NUI message which then runs a JS function, that creates a notification, provided by the NOTY library.
Download:
https://github.com/Nick78111/pNotify
Previ…
Vaucity
September 16, 2017, 7:24pm
18
Since I put this in the my game crashes after like 20 minutes with the purple bacon error is there a way to fix this?
Did you find a fix for this?
Skrubby
October 11, 2017, 5:57am
20
getting a error when you use /reply
And that error would be what? Saying you have an error won’t get anything fixed.
Skrubby
October 12, 2017, 3:45am
22
I get that same error ^^^
OP has been Updated with a new release of this script.
When I send a text to someone, the text appears to come from the receiver
So if person A sends a text to person B, it looks like to text comes from person B
1 Like
FAXES
November 2, 2017, 11:43am
26
same. I think he is making it so it says the player name and ID
same. I think he is making it so it says the player name and ID
Done! OP has been updated with an edit and the fixed script has been uploaded to the host.
Everyone should make sure to update their scripts with this new release
Westie
November 3, 2017, 8:02am
28
I am being a bit lazy and haven’t had a good look at it, but is there a way to remove “message from” and the player ID… just so it shows the name?
FAXES
November 4, 2017, 2:04am
29
It still says the your name insead of senders name. when I do /reread it has the right ID and wrong name
It still says the your name insead of senders name. when I do /reread it has the right ID and wrong name
Hmm. Strange. You made sure to update the files in your resource with these new ones?
1 Like
FAXES
November 5, 2017, 3:55am
31
yeah they are updated even cleared cache