---
title: "UsePlayerPedAnims | open.mp"
description: "Uses standard player walking animation (animation of the CJ skin) instead of custom animations for every skin (e.g. skating for skater skins)."
canonical: https://omp.itsneufox.com/th/docs/scripting/functions/UsePlayerPedAnims
language: th
---

# UsePlayerPedAnims

## คำอธิบาย

Uses standard player walking animation (animation of the CJ skin) instead of custom animations for every skin (e.g. skating for skater skins).

## ตัวอย่าง

```c
public OnGameModeInit()
{
    UsePlayerPedAnims();
    return 1;
}
```

## บันทึก

หมายเหตุ

-   Only works when placed under [OnGameModeInit](https://omp.itsneufox.com/th/docs/scripting/callbacks/OnGameModeInit).
-   Not using this function causes two-handed weapons (not dual-handed - a single weapon that is held by both hands) to be held in only one hand.

เคล็ดลับ

You can also enable standard player walking animation via [config.json](https://omp.itsneufox.com/th/docs/server/config.json)

```json
"use_player_ped_anims": true,
```

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

-   [ApplyAnimation](https://omp.itsneufox.com/th/docs/scripting/functions/ApplyAnimation): Apply an animation to a player.
-   [ClearAnimations](https://omp.itsneufox.com/th/docs/scripting/functions/ClearAnimations): Clear any animations a player is performing.
