How would I get the element clicked? I tried this but it didn't seem to work:
function click ( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement )
if ( clickedElement == "vehicle" ) then
outputChatBox("fuck u")
end
end
addEventHandler ( "onClientClick", getRootElement(), click)
Thanks,
Xeno