Scripting/Squirrel/Functions/Misc/GetSkinName

From VC-MP Wiki

Jump to: navigation, search

This returns the name of the skin that the player is using.

Syntax

string GetSkinName( player.Skin )

Arguments

player.Skin - This returns the skin ID that the player is using

Example

This example will return the player's skin name when they spawn.

function onPlayerSpawn( player )
{
     MessagePlayer( "You spawned as " + GetSkinName( player.Skin ) + ".", player );
}

Notes

The function MessagePlayer and call onPlayerSpawn were used in in this example. More info about them in corresponding pages.

Related Functions

Personal tools
squirrel scripting