- Documentation
- Server functions
- getTypeIndexFromClothes
Function
getTypeIndexFromClothes
Returns the type and number of a clothing item by its texture and model, from the table loaded with setClothesData.
Syntax
int, int getTypeIndexFromClothes(string clothesTexture [, string clothesModel])Arguments
clothesTexturestring- Texture.
clothesModelstring, optional- Model.
Returns
Type and number or false.
Example
local clothesType, index = getTypeIndexFromClothes("vestblack", "vest")
See also
getClothesByTypeIndexReturns the texture and model of clothing numberindexof a type, from the table loaded withsetClothesData.setClothesDataLoads your own clothing table forgetClothesByTypeIndexandgetTypeIndexFromClothes: a type (as a string"0"-"17") -> a list of{ texture, model }. Without it both functions returnfalse.