Varkis Posted August 11, 2023 Posted August 11, 2023 I use this guiSetProperty function(edit, "ValidationString", "^[A-Za-z_0-9]+$") but there is a problem when I want to delete the entire string, I can't delete the first character entered in the string.
Moderators IIYAMA Posted August 11, 2023 Moderators Posted August 11, 2023 5 hours ago, Egor_Varaksa said: ^[A-Za-z_0-9]+$ And what if you do: ^[A-Za-z_0-9]+$|^$ | = OR ^ = START $ = END ^$ = allows empty string since there is nothing between the START and the END. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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