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

Function

getClothesByTypeIndex

ServerClothesIdentical to MTA:SA

Returns the texture and model of clothing number index of a type, from the table loaded with setClothesData.

Syntax

string, string getClothesByTypeIndex(int clothesType, int clothesIndex)

Arguments

clothesTypeint
Type 0-17.
clothesIndexint
Clothing number counted from 0.

Returns

Texture and model or false.

Example

local texture, model = getClothesByTypeIndex(0, 0)
if texture then addPedClothes(player, texture, model, 0) end

See also