---
title: "GetPlayerSkin | open.mp"
description: "Returns the class of the players skin."
canonical: https://omp.itsneufox.com/th/docs/scripting/functions/GetPlayerSkin
language: th
---

# GetPlayerSkin

## คำอธิบาย

Returns the class of the players skin

| Name | Description |
| --- | --- |
| playerid | The player you want to get the skin from |

## ส่งคืน

The skin id (0 if invalid)

## ตัวอย่าง

```c
playerskin = GetPlayerSkin(playerid);
```

## บันทึก

หมายเหตุ

-   Returns the new skin after SetSpawnInfo is called but before the player actually respawns to get the new skin.
-   Returns the old skin if the player was spawned through SpawnPlayer function.

## ฟังก์ชั่นที่เกี่ยวข้องกัน

-   SetPlayerSkin: Set a player's skin.
