-ffs-AbodyRulez Posted February 19, 2014 Posted February 19, 2014 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?
denny199 Posted February 20, 2014 Posted February 20, 2014 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.
Recommended Posts