Same I have added it to resources and still not doing anything, I don’t know what else I need to edit? Could please someone help me out.
Thank you.
Same I have added it to resources and still not doing anything, I don’t know what else I need to edit? Could please someone help me out.
Thank you.
Hello, I’m trying to add pNotify to a script on my server. Would it be as simple as adding:
RegisterNetEvent("chatMessage")
AddEventHandler("chatMessage", function(author, color, text)
TriggerEvent("pNotify:SendNotification", {text = "test",
type = "success",
queue = "global",
timeout = 4000,
layout = "centerLeft",
animation = {open = "gta_effects_fade_in",
close = "gta_effects_fade_out"}
})
end)
to the end of the client.lua
?
Would this be a server-side thing or client-side?
@leepafc2007 Do you have a script that is calling for a pNotifcation? if you dont have any scripts that call for the notifcation nothing will ever happen
Try and add this script to your server.(as long as you still have pNoti installed)
pntest.rar (506 Bytes)
@BreadForMen try this as well. This should just go into a client lua. or you can DL the resource i uploaded and test it that way.
RegisterCommand('pntest', function(source, args)
TriggerEvent("pNotify:SendNotification",{
text = "<b style='color:#1E90FF'>This be a test</b>",
type = "success",
timeout = (3000),
layout = "bottomcenter",
queue = "global"
})
end,false)
Be sure to add " start pntest " in your server.cfg
Once you are in game type " /pntest " then press Enter.
If you have pNotify installed right then a notification should pop up for you.
Ok thank you for your help, I will try this, I am still learning myself.
Thanks
Any snippets to that script?
Can someone help me get this setup on my FX server, I need it to run the AnchorBoat Script found here:
It says it’s required before using the anchor script, but I couldn’t get either of these to work.
Any help would be much appreciated thanks!
How do I make notification with coordinates?
is there anyone who can tell me how to use this with pNotify
vRPclient.notify(dest_src,{lang.phone.sms.notify({from, msg})})
TriggerClientEvent("pNotify:SendNotification", dest_src,{
text = lang.phone.sms.notify({from, msg}),
type = "success",
queue = "global",
timeout = 10000,
Layout = "bottomRight",
animation = {open = "gta_effects_fade_in",
close = "gta_effects_fade_out"}
})
it works thanks
If you steel need help, you should check this code:
if notify then
local player = vRP.getUserSource(user_id)
if player ~= nil then
TriggerClientEvent("pNotify:SendNotification", dest_src,{
text = lang.inventory.give.received({vRP.getItemName(idname),amount}),
type = "info",
queue = "global",
timeout = 2000,
Layout = "bottomRight",
animation = {open = "gta_effects_fade_in",
close = "gta_effects_fade_out"}
})
end
end
Do you know how to make a line breake between this “from, msg” soo the message is on the next line ?
TriggerClientEvent("pNotify:SendNotification", dest_src,{
text = lang.phone.sms.notify({from, msg}),
type = "success",
queue = "global",
timeout = 10000,
layout = "centerRight",
animation = {open = "gta_effects_fade_in",
close = "gta_effects_fade_out"}
})
Sure, just change notify in your lang file, like this:
sms = {
title = "SMS History",
description = "Received SMS history.",
info = "<em>{1}</em><br /><br />{2}",
notify = "SMS from {1}: <br />{2}"
when {1}
is phone number, {2}
is message, <br />
is line skip, if you want to skip 2 lines, just set <br /><br />
before {2}
Thanks It looks much better now
sometimes pNotify get stock on the screen is there a fix for this ?
I would like to set a transparent black adornment. How to do it ?
Getting error while connecting to server. No resource.
it says “couldn’t loud resource pNotify” someone can help with this?^^
The website is down at the moment trying to look at the options