victormgons Posted September 13, 2015 Posted September 13, 2015 I'm making a resource, and I need to remove the dot from the player IP For example: IP: 127.0.0.1 To: 127001 I tried this: getPlayerIP(player):gsub('.','') But it doesn't works. Someone can helps me?
t3wz Posted September 13, 2015 Posted September 13, 2015 In Lua . means all characters so you have to use %. to detect dots. ip = getPlayerIP ( player ):gsub ( "%.", "" ) more info here.
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