Jump to content

Login Dx, Notification showing for all rather than 1


Extinction

Recommended Posts

Posted

Hi there, I used and edited a community script I think it's Bonsai's Notification Script.

I am trying to do only for the single player's itself, but instead it shows for everyone.

Server Sided -

else 
                            triggerClientEvent(source,"showNotification",getRootElement(), "An error occured! Please choose a different username/or password!", "error") 
  
                        end 
                    else 
                          triggerClientEvent(source,"showNotification",getRootElement(), "An account with this username already exists!", "error") 
  
                    end 
                else 
                          triggerClientEvent(source,"showNotification",getRootElement(), "Null: Contact an Administrator", "error") 
                end 
            else 
                          triggerClientEvent(source,"showNotification",getRootElement(), "Null: Contact an Administrator", "error") 
            end 

Posted
hmm you can use localPlayer

No, he can't as the script is server-sided. localPlayer is a client-side only variable, obviously.

@Extinction:

The whole if statement seems a bit messy, any chance you could provide more of the relevant code? It's hard to try and help you with only a fraction of it.

How is source defined? It's being sent to all clients, so source is not defined as a specific player. Any errors? Is source returning nil?

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

Posted
No, it's not returning nil. Works perfect, just that it shows for everyone rather that individuals.

And now read the rest of my reply :lol:

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...