Jump to content

My client scripts and GUI are shared among all players!


Recommended Posts

Posted

This is driving me nuts!

Finished creating an admin panel, and it works perfectly, tried to test it with teammates, and it got all fucked up, results are doubled, whenever someone presses a button, results show for everyone, event though it's a client side script, the server side script includes dbExec stuff, any ideas??

Posted (edited)

With most likeliness you're using triggerClientEvent wrong. Thus it triggers for all player elements currently on the server.

Edited by Guest

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
Forget about the sourceElement/attachedElement, the more important parameter is the sendTo one. You need to specify who the event triggers for. The default value is root so it triggers for everyone.

A big fat thanks :)

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...