GetPlayerClothesTexture

From GT-MP
Jump to: navigation, search
GetPlayerClothesTexture
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#

Returns the specified player's clothing texture ID on the specified slot.

Icon-info.png
This function will return -1 when there is no clothing set on the specified slot. (Version 0.1.7)

Syntax

API.getPlayerClothesTexture(Client player, int slot);

Required Arguments

  • player: parameter input should be in Client type.
  • slot: parameter input should be in int type. See Character Components.

NOTE: This function returns data in int type.

Usage example(s)

[Command("textures")]
public void ClothingTextures(Client player)
{
    for (int i = 0; i <= 11; i++)
    {
        API.sendChatMessageToPlayer(player, string.Format("Clothing Slot: {0} - Color ID: {1}", i, API.getPlayerClothesTexture(player, i)));
    }
}

References