Skip to content

function getPlayerAni (client-side)

Available since version: 0.3.0

This function will return the active animation name for a player or NPC.

Declaration

string|nil getPlayerAni(number player_id)

Parameters

  • number player_id: Target player or NPC id; negative ids refer to client-local NPCs.

Returns string|nil

Active animation name, or nil if unavailable.