-ffs-AbodyRulez Posted August 24, 2015 Posted August 24, 2015 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??
Dealman Posted August 24, 2015 Posted August 24, 2015 (edited) With most likeliness you're using triggerClientEvent wrong. Thus it triggers for all player elements currently on the server. Edited August 24, 2015 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.
-ffs-AbodyRulez Posted August 24, 2015 Author Posted August 24, 2015 With most likeliness you're using triggerClientEvent wrong. This it triggers for all player elements currently on the server. MARRY ME . QUICK <3 <3
-ffs-AbodyRulez Posted August 24, 2015 Author Posted August 24, 2015 Crap.. you did told me where my problem is, but i can't seem to fix it.. the "attachedElement" part is a damn mystery, that can be found in triggerServerEvent/triggerClientEvent/addEventHandler
Dealman Posted August 24, 2015 Posted August 24, 2015 How are you using triggerClientEvent? 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.
JR10 Posted August 24, 2015 Posted August 24, 2015 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. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
-ffs-AbodyRulez Posted August 25, 2015 Author Posted August 25, 2015 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now