Skip to content

Instantly share code, notes, and snippets.

@JeViCo
Created September 6, 2023 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JeViCo/197a05418d89c92dc104e173860700fe to your computer and use it in GitHub Desktop.
Save JeViCo/197a05418d89c92dc104e173860700fe to your computer and use it in GitHub Desktop.
addEventHandler("onClientClick", root, function(button, state, _,_,_,_,_, element)
if (button ~= "left") or (state ~= "up") then
return
end
if (isElement(element)) then
local x, y, z = getElementPosition(element)
local _, _, rot = getElementRotation(element)
outputConsole(inspect{x, y, z, rot})
end
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment