You are triggering a server side function:
setTimer(triggerServerEvent, 700, 1, "setPedAnimation", localPlayer, "CHAINSAW", "WEAPON_csaw", true)
Make sure you have that "setPedAnimation function if you want to use a function made by you. If not, just use setPedAnimation without triggering it. (Use wiki example if you don't know how)