Backsage Posted November 14, 2016 Share Posted November 14, 2016 I have an issue. I'm making a CJ skins shop and when I click on Torso and click on vestblack - vest, it's giving me the wrong clothing item. It's showing vest - vest instead. https://puu.sh/shGng/1ca7e8ff42.png But meanwhile, this is correct: https://puu.sh/shGsm/bd96b72336.png Any ideas? Link to comment
Backsage Posted November 14, 2016 Author Share Posted November 14, 2016 Nvm, fixed it. I think what the problem was when it was doing if string.find(text, texture) and string.find(text, model) then and whenever I clicked on clothing items such as vestblack - vest, it would see that vest was in vestblack, so it ended up becoming vest - vest actually. And when I clicked leathertr - leathertr or leathertrchaps - leathertr, because leather was in those words, it ended up being leather - leather AND leathertr - leathertr or leathertrchaps - leathertr. Fixed it using a method from here: https://forum.multitheftauto.com/topic/33967-addpedclothes/ Link to comment
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