Jump to content

allow certain characters to be entered


Egor_Varaksa

Recommended Posts

Hello Egor_Varaksa,

I suggest you try playing around with the onClientGUIChanged event. Use the guiGetText function to fetch the current content of the editbox. If the current text contains any invalid characters then reset it to the previous text. You should try using the utf8.find function to check for validity of the text. Basically, if the entire content matches against your pattern (start index = 1, end index = #content) then it does match your language requirements.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...