Enargy, Posted September 22, 2013 Share Posted September 22, 2013 Hi all, I want to know how to make the text box and memo to write numbers in place of letters, Thanks. gui = guiCreateWindow(371, 251, 299, 104, "", false) guiSetVisible(gui, false) edit = guiCreateEdit(16, 40, 268, 27, "", false, gui) function showGUI() guiSetVisible (gui , not guiGetVisible ( gui ) ) showCursor ( guiGetVisible ( gui ) ) end bindKey("o", "down", showGUI) Link to comment
xXMADEXx Posted September 22, 2013 Share Posted September 22, 2013 Try this: addEventHandler ( "onClientGUIChanged", edit, function ( ) guiSetText ( source, guiGetText(source):gsub ( "%p", "" ) ) guiSetText ( source, guiGetText(source):gsub ( "%s", "" ) ) guiSetText ( source, guiGetText(source):gsub ( "%a", "" ) ) end ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now