local localPlayer = getLocalPlayer() local ifp = nil function setanimation() ifp = engineLoadIFP("rifle.ifp") if ifp then setPedAnimation(localPlayer, "RIFLE", "RIFLE_fire_poor") end end addCommandHandler("testanimacji", setanimation) function stopanimation() if ifp then engineUnloadIFP(ifp) setPedAnimation(localPlayer) end end addCommandHandler("stopanimation", stopanimation)