function obtenerPos(localPlayer)
if ( source == GUIEditor_Button[1] ) then
x, y, z = getElementPosition(localPlayer)
guiSetText( GUIEditor_Edit[1], x )
guiSetText( GUIEditor_Edit[2], y )
guiSetText( GUIEditor_Edit[3], z )
end
end
addEventHandler ( "onClientClick", getRootElement(), obtenerPos )
Donde se define lo de
"
if ( source == GUIEditor_Button[1] ) then
" ??
Edit: lo que dijo Soren podria estar bien, quiza no se define asi la variable, pero soy novato en esto de las variables y recien empiezo con todo esto de LUA