GetPlayerAccessoryTexture

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

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

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

Syntax

API.getPlayerAccessoryTexture(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)

API.getPlayerAccessoryTexture(Client player, int slot);

References