SetPlayerClothes

From GT-MP
Jump to: navigation, search
SetPlayerClothes
Shared Function
Utilities-terminal.png Server-Side System-users.png Client-Side
Csharp.png C# Javascript.png JavaScript

Sets the player's clothing. For a list of available styles in freemode skins, see Character Components.

Dialog-warning.png

Note: You need to use the skin "FreemodeFemale01" or the skin "FreemodeMale01", otherwise this function won't work.

Syntax

In C#
Server-Side Function

setPlayerClothes(Client player, int slot, int drawable, int texture)

Required Arguments

  • player: parameter input should be in Client type.
  • slot: parameter input should be in int type. See Character Components for more information.
  • drawable: parameter input should be in int type between 0 and 255. See the Character Components lists for more information.
  • texture: parameter input should be in int type between 0 and 255.

In Javascript
Client-Side Function

API.setPlayerClothes(LocalHandle player, int slot, int drawable, int texture);

Required Arguments

  • player: parameter input should be in LocalHandle type.
  • slot: parameter input should be in int type. See Character Components for more information.
  • drawable: parameter input should be in int type. See the Character Components lists for more information.
  • texture: parameter input should be in int type.

Usage example(s)

The command below gives you a nice red/blue shirt.

Note: Dont forget to set your skin to FreemodeMale01 or FreemodeFemale01

Example of Usage: /setclothes 11 8 0

[Command("setclothes")]
public void clothes(Client sender, int slot, int drawable, int texture)
{
    API.setPlayerClothes(sender, slot, drawable, texture);
}

References