ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getTypeIndexFromClothes

Function

getTypeIndexFromClothes

ServerClothesIdentical to MTA:SA

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