Any limitations to use animal peds?

Hi,

I’m trying to spawn attacking animals(cougars, boars, etc) just like in solo but they just flee.
I managed to make some of them attack me by using
TaskPutPedDirectlyIntoMelee(animal, GetPlayerPed(-1), 0, 0, 0, 0)

But it doesn’t work for cougars. What can be the issue ?


    AddRelationshipGroup("WAW")
	SetRelationshipBetweenGroups(5, GetHashKey("WAW"), GetHashKey("PLAYER"))
	SetRelationshipBetweenGroups(5, GetHashKey("PLAYER"), GetHashKey("WAW"))

	x, y, z = table.unpack(GetEntityCoords(GetPlayerPed(-1), true))

	RequestModel(0x644AC75E)
	while not HasModelLoaded(0x644AC75E) do
		Wait(1)
	end

	animal = CreatePed(28, 0x644AC75E, x, y, z, 0.0, true, true)
    SetPedFleeAttributes(ped, 0, 0)
	SetPedRelationshipGroupHash(animal, GetHashKey("WAW"))
	TaskSetBlockingOfNonTemporaryEvents(animal, true)
	TaskPutPedDirectlyIntoMelee(animal, GetPlayerPed(-1), 0, 0, 0, 0)
  SetPedFleeAttributes(ped, 0, 0)

Perhaps?

I’m already using that function radon, but it doesn’t seem to work for every animals.