You have to put it in a loop, and you could use this to check model:


if IsPedModel(GetPlayerPed(-1), GetHashKey('U_M_Y_Zombie_01')) then

SetRelationshipBetweenGroups(1, GetHashKey(“PLAYER”), GetHashKey(“zombeez”))
SetEntityCanBeDamagedByRelationshipGroup(GetPlayerPed(-1), false, “zombeez”)

end

1 Like