ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getClothesTypeId

Function

getClothesTypeId

Server and clientClothesTrilogy Hub only

Returns the clothing part number by name. It accepts English and Polish names, e.g. "hat", "czapka", "trousers", "tattoo3".

Syntax

int getClothesTypeId(string name)

Arguments

namestring
The part name.

Returns

Number 0-17 or false.

Example

outputServerLog(getClothesTypeId("okulary")) -- 15

See also