SetPlayerSkin

From GTA Network Wiki
Jump to: navigation, search

SetPlayerSkin
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Set a skin to a defined player.

Syntax

void NAPI.Player.SetPlayerSkin(Client player, PedHash/uint modelHash);

Required Arguments

  • player: parameter input should be in Client type.
  • modelHash: parameter input should be in PedHash or uint type.


icon-info.png
Attention: When you change the skin of a player, that player will lose all of its weapons.


Usage example(s)

Example Description

[Command("skin")]
public void ChangeSkinCommand(Client sender, PedHash model)
{
    NAPI.Player.SetPlayerSkin(sender, model);     
}


Changelog

Version Description
1.0 Release.
1.1 Update Example.

References