Hello guys!
i'm learning scripting today i make simple ped animation script but it not working here is my code.
function Ped()
ped1 = createPed(107, 2490.5, -1651.5, 13.5)
setPedRotation(ped1, 90.0041198)
setPedAnimation( ped1, "ped", "M_smklean_loop")
end
addEventHandler("onResourceStart", getRootElement(), makPed)
or i want to give him gun or if player attack him, ped will shoot him with his gun please tell me how i can do it.