Advertisement
XaskeL

semiletov2

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