Jump to content

I think this event is not Serverside event as it shows


Recommended Posts

https://wiki.multitheftauto.com/wiki/OnElementClicked

If we thought about it for a moment, this event must be triggered from client to showCursor(), when triggering a server event from client, its required to put an element.

bool triggerServerEvent ( string event, element theElement, [arguments...] )

while onElementClicked's source is the element that got clicked by the player, so we can't just override that.

Correct me if i was wrong?

Link to comment

Parameters:

string mouseButton, string buttonState, player playerWhoClicked, float clickPosX, float clickPosY, float clickPosZ 

You can get the player as you see with the third parameter, plus you can show the cursor on the server side. I don't know exactly how the source code is, so I don't know how this is exactly triggered.

Link to comment
  • Recently Browsing   0 members

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