local sampev = require 'samp.events'
function sampev.onApplyPlayerAnimation(playerId, animLib, animName, frameDelta, loop, lockX, lockY, freeze, time)
local _, myId = sampGetPlayerIdByCharHandle(PLAYER_PED)
if playerId == myId then
sampAddChatMessage(string.format("server sent anim: %s", animName), -1) -- Узнаешь название анимации стадии
if animName == "IDLE_CHAT" then -- Сравнение названия
-- МЕСТО ПОД ТВОЁ ДЕЙСТВИЕ
end
end
end