Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Fix argument in playAnimation for static peds (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubeeek committed Apr 7, 2023
1 parent f9f448a commit d9ae327
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/server/controllers/staticPed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,21 +153,21 @@ export function addToPlayer(player: alt.Player, pedData: IPed): string {
*
* #### Example
* ```ts
* Athena.controllers.staticPed.playAnimation('the-id-you-specified', playAnimation('test', [
* Athena.controllers.staticPed.playAnimation('the-id-you-specified', playAnimation('test',
* {
* dict: 'mp_ped_interaction',
* name: 'hugs_guy_a',
* duration: 2000,
* flags: 0,
* },
* ]);
* );
* ```
*
*
* @param {string} uid A unique string
* @param {Animation[]} animation
* @param {Animation} animation
*/
export function playAnimation(uid: string, animation: Animation[]) {
export function playAnimation(uid: string, animation: Animation) {
alt.emitAllClients(SYSTEM_EVENTS.PLAY_ANIMATION_FOR_PED, uid, animation);
}

Expand Down

0 comments on commit d9ae327

Please sign in to comment.