Jump to content

getting all ped clothes


Recommended Posts

Hey all,

I'm trying to script a character system that can save clothing, but im having issues trying to figure out how to save the clothing ID's in a mysql DB. Should I use a JSON string for each type, one JSON string for all types, or what? Also, how would I go about getting all of the clothing a ped is wearing? I'm pretty confused.

Any advice would be great.

Link to comment

I would say "CJ" is wearing, since only CJ can wear clothes.

  
local clothes 
for i=0, 17 do 
     texture, model = getPedClothes ( thePed, i ) 
     clothes[texture] = model 
end 
  

^^ I think you already did that, but I think you should make a JSON string for each type.

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...