Hello I'm scripting login panel and i want to users do not use guiEditFields i want to they be able to type in rectangles 
Ik which functions and events to use but idk how, cuz i'm new in MTA and in Lua scripting 
local text = { } 
addEventHandler("onClientClick",root, 
function () 
(we check if the click is in the Rec) then 
addEventHandler("onClientKey",root, 
function () 
(we add the letter to the text table) 
end 
) 
end 
addEventHandler("onClientRender",root, 
function () 
dxDrawText(table.concat(text).....) 
end 
) 
but idk how to  write it correctly, every time i try i screw up something , anyone help ?