Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local keys = {}
- keys[1] = GuiButton( 14, 157, 64, 64, "\n\n\n1", false, wndBankEnterPIN)
- keys[2] = GuiButton( 88, 157, 64, 64, " ABC\n\n\n2", false, wndBankEnterPIN)
- keys[3] = GuiButton(162, 157, 64, 64, " DEF\n\n\n3", false, wndBankEnterPIN)
- keys[4] = GuiButton( 14, 231, 64, 64, " GHI\n\n\n4", false, wndBankEnterPIN)
- keys[5] = GuiButton( 88, 231, 64, 64, " JKL\n\n\n5", false, wndBankEnterPIN)
- keys[6] = GuiButton(162, 231, 64, 64, " MNO\n\n\n6", false, wndBankEnterPIN)
- keys[7] = GuiButton( 14, 305, 64, 64, " PQ\n RS\n\n7", false, wndBankEnterPIN)
- keys[8] = GuiButton( 88, 305, 64, 64, " TUV\n\n\n8", false, wndBankEnterPIN)
- keys[9] = GuiButton(162, 305, 64, 64, " WX\n YZ\n\n9", false, wndBankEnterPIN)
- keys[0] = GuiButton( 88, 379, 64, 64, "\n\n\n0", false, wndBankEnterPIN)
- local function pressBtn(button, state, absoluteX, absoluteY)
- local number = source.text:gsub('(%D+)', '')
- edtPINCode.text = edtPINCode.text..number
- end
- for i = 0, 9 do
- addEventHandler('onClientGUIClick', keys[i], pressBtn)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement