Advertisement
cnl_cnl_cnl

Untitled

Sep 14th, 2022
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. -- Name matches (sub)string ----------------------------------------------------
  2. function u.pcNameMatch(nominee,len)
  3. local len = len or 2
  4. local nominee = nominee:lower()
  5. local pc_name = m.pc_name:lower()
  6. return pc_name:sub(1,nominee:len()) == nominee and nominee:len() >= len
  7. end
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement